Unable to install spacy english model in python 3.5

I believe the space documentation covers all of the use cases you are after. Specifically looks like there are ~3 ways to download models.

  • python -m spacy download en but that creates a link
  • python -m spacy download en_core_web_sm-2.0.0 --direct this doesn't create a link
  • pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.0.0/en_core_web_sm-2.0.0.tar.gz

You can include them in requirements with the following syntax

spacy>=2.0.0,<3.0.0
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.0.0/en_core_web_sm-2.0.0.tar.gz#en_core_web_sm

All of this was taken from the docs page here.


en_core_web_md doesn't exist as a package in its own right on pypi.org or Anaconda, so you can't just pip install it by name. However you can find download links for the model on the GitHub page and you can pip install directly from one of the download URLs, e.g.

pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_md-2.0.0/en_core_web_md-2.0.0.tar.gz

Note that when I tested that it did install spacy for me. So it might be easiest to just use spacy to download in the first place and change the linked model with python -m spacy link afterwards if necessary.