Azure Python Deployment - Spacy Nomodule Found Exception
I'm using Linux App Service. I'm trying to deploy python 3.6 flask application through the Azure DevOps pipeline. It worked fine for a basic app but when I add an additional code (
Solution 1:
Here is something you should do:
- Please ensure to activate the virtual environment before executing any code, also make sure to check if your installed package is actually in there in your VENV.
I would suggest you to create new VENV and try activating it.
Secondly , you can language data has been moved to a submodule
**spacy.lang**
to keep thing cleaner and better organised.E.g. instead of using
spacy.en
, you now import fromspacy.lang.en
python -m spacy download en_core_web_sm
import spacy
nlp = spacy.load("en_core_web_sm")
Additional reference:
https://www.pythonanywhere.com/forums/topic/13328/
ImportError: No module named 'spacy.en'
Hope it helps.
Post a Comment for "Azure Python Deployment - Spacy Nomodule Found Exception"