I am trying to load the spacy model en_core_web_sm on my requirements.txt file. The app logs the error No matching distribution found for en_core_web_sm==3.0.0 I have tried changing to en_core_web_sm<=3.00 but I find the same error. How else can I go about it?
Hi @Grivine-19, welcome to the Streamlit community!
I just read through spaCy’s documentation and it suggests adding the following to your requirements.txt
:
spacy>=3.0.0,<4.0.0
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz#egg=en_core_web_sm
Try replacing spacy==3.0.6
in line 5 of your requirements.txt with the two lines above. Let me know if that works
Hi @snehankekre . Thank you so much. It works
Fantastic!
Happy Streamlit-ing!
Snehan