Skip to main content
Solved

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

  • March 4, 2024
  • 2 replies
  • 138 views

akoure_terracon
Contributor
Forum|alt.badge.img+8

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • 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+8

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'