Skip to main content
Solved

Expected an even number of command line arguments, instead got 3 for command line


akoure_terracon
Contributor
Forum|alt.badge.img+3

When I run: .\fme.exe python -m spacy download en_core_web_sm

 

I get the following error: Expected an even number of command line arguments, instead got 3 for command line: >>  `pip'  `install'  `https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl' <<
Program Terminating

 

I was able to install “spacy” to my Python environment, however I need to install the models for spacy as described here: https://spacy.io/usage/models

 

Is there anything I can do about this error?

Best answer by david_r

Try manually downloading the WHL file and installing it from the command line, e.g.

fme.exe python -m pip install en_core_web_sm-3.7.1-py3-none-any.whl

View original
Did this help you find an answer to your question?

2 replies

david_r
Evangelist
  • Best Answer
  • March 5, 2024

Try manually downloading the WHL file and installing it from the command line, e.g.

fme.exe python -m pip install en_core_web_sm-3.7.1-py3-none-any.whl


akoure_terracon
Contributor
Forum|alt.badge.img+3
david_r wrote:

Try manually downloading the WHL file and installing it from the command line, e.g.

fme.exe python -m pip install en_core_web_sm-3.7.1-py3-none-any.whl

Thanks! I meant to update with an answer yesterday, I ended up using the direct link to the wheel on GitHub, although I imagine using a downloaded version would be all the same. 

fme.exe python -m pip install 'https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.7.1/en_core_web_lg-3.7.1-py3-none-any.whl'

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings