In my project I have spaCy as a dependency in my setup.py
, but I want to add also a default model.
My attempt so far has been:
install_requires=['spacy', 'en_core_web_sm'],
dependency_links=['https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.0.0/en_core_web_sm-2.0.0.tar.gz#egg=en_core_web_sm'],
inside my setup.py
, but both a regular pip install
of my package and a pip install --process-dependency-links
return:
pip._internal.exceptions.DistributionNotFound: No matching distribution found for en_core_web_sm (from mypackage==0.1)
I found this github issue from AllenAI with the same problem and no solution.
Note that if I pip install
the url of the model directly, it works fine, but I want to install it as a dependency when my package is install with pip install
.