No matching distribution found for en_core_web_sm==3.0.0

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?

2 Likes

Hi @Grivine-19, welcome to the Streamlit community! :partying_face:

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 :crossed_fingers:

3 Likes

Hi @snehankekre . Thank you so much. It works :+1:

1 Like

Fantastic! :tada:

Happy Streamlit-ing!
Snehan

1 Like