-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory. #4577
Comments
Which version of spacy are you running? If you're not using the latest, try upgrading. One common problem with Jupyter notebooks is that they install packages (including spaCy models, which are also just Python packages) in the same Python session and the installed packages are not automatically refreshed. This makes it difficult to detect whether a package is installed or not. More recent versions of spaCy should include a workaround for this. Also make sure that the |
I have tried to update my spaCy with My spaCy version: 2.2.2 However, when input
|
What happens if you run the following? import en_core_web_sm
nlp = en_core_web_sm.load() If this works, it'd indicate that the problem is related to the way spaCy detects installed packages. If it doesn't work and gives you an Also, maybe double-check that the model installed correctly? Models are installed as Python packages by running |
Finally, solve the issue by following:
I'm wondering what's the difference between these two command lines for installing
Thank you for patience and guidance! |
Glad it worked!
When you run However, if the pip executed with (In the future, this will hopefully also be less of an issue, because Python 2 will be less common and |
@ines This fixed it for me. Thanks! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I have installed
spacy
and downloadeden_core_web_sm
with:When running codes on Python3 default IDLE, it runs successfully:
However, when I run above codes in jupyter notebook, it shows error:
I tried several ways in
Jupyter notebook
likebut it still shows the error.
OS: MacOS
Could somebody help me fix this issue? Thanks in advance!
The text was updated successfully, but these errors were encountered: