OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a Python package or a valid path to a data directory. #12638
-
I'm trying to import spacy on Mac OS. I have tried following the guidance on https://spacy.io/usage for pip and condo and https://www.projectpro.io/recipes/install-and-use-spacy-models. I cannot seem to understand what is happening. Could anyone please help explain what I'm doing wrong and how to fix this issue please? This is the error code in Jupyter notebook: Successfully installed en-core-web-sm-3.5.0 nlp = spacy.load('en_core_web_sm')NameError Traceback (most recent call last) NameError: name 'spacy' is not defined |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Did you run
in the notebook before
If so, could you give all the cells that you run in the notebook? |
Beta Was this translation helpful? Give feedback.
-
Perhaps as I have now installed home-brew? |
Beta Was this translation helpful? Give feedback.
-
I am wrong spacy isn't working in Jupyter notebook or VS Code. error for VS code is: |
Beta Was this translation helpful? Give feedback.
Note that the module name is
spacy
, notspaCy
, so you need to