Initially I downloaded two en packages using following statements in anaconda prompt.

python -m spacy download en_core_web_lg
python -m spacy download en_core_web_sm

But, I kept on getting linkage error and finally running below command helped me to establish link and solved error.

python -m spacy download en

Also make sure you to restart your runtime if working with Jupyter. -PS : If you get linkage error try giving admin previlages.

Answer from Tarun Reddy on Stack Overflow

Initially I downloaded two en packages using following statements in anaconda prompt.

python -m spacy download en_core_web_lg
python -m spacy download en_core_web_sm

But, I kept on getting linkage error and finally running below command helped me to establish link and solved error.

python -m spacy download en

Also make sure you to restart your runtime if working with Jupyter. -PS : If you get linkage error try giving admin previlages.

Answer from Tarun Reddy on Stack Overflow
🌐
spaCy
spacy.io › usage
Install spaCy · spaCy Usage Documentation
Instead, spaCy adds an auto-alias that maps spacy to python -m spacy. If this is not working as expected, run the command with python -m, yourself – for example python -m spacy download en_core_web_sm.
API
spaCy is a free open-source library for Natural Language Processing in Python. It features NER, POS tagging, dependency parsing, word vectors and more.
Models
Downloadable trained pipelines and weights for spaCy
Universe
spaCy is a free open-source library for Natural Language Processing in Python. It features NER, POS tagging, dependency parsing, word vectors and more.
Spacy 101
The most important concepts, explained in simple terms
🌐
spaCy
spacy.io › usage › models
Models & Languages · spaCy Usage Documentation
Install a default trained pipeline package, get the code to load it from within spaCy and an example to test it. For more options, see the section on available packages below. ... python -m spacy download en_core_web_smimport spacynlp = spacy.load("en_core_web_sm")import en_core_web_smnlp = en_core_web_sm.load()doc = nlp("This is a sentence.")print([(w.text, w.pos_) for w in doc])
Top answer
1 of 16
271

Initially I downloaded two en packages using following statements in anaconda prompt.

python -m spacy download en_core_web_lg
python -m spacy download en_core_web_sm

But, I kept on getting linkage error and finally running below command helped me to establish link and solved error.

python -m spacy download en

Also make sure you to restart your runtime if working with Jupyter. -PS : If you get linkage error try giving admin previlages.

2 of 16
97

The answer to your misunderstanding is a Unix concept, softlinks which we could say that in Windows are similar to shortcuts. Let's explain this.

When you spacy download en, spaCy tries to find the best small model that matches your spaCy distribution. The small model that I am talking about defaults to en_core_web_sm which can be found in different variations which correspond to the different spaCy versions (for example spacy, spacy-nightly have en_core_web_sm of different sizes).

When spaCy finds the best model for you, it downloads it and then links the name en to the package it downloaded, e.g. en_core_web_sm. That basically means that whenever you refer to en you will be referring to en_core_web_sm. In other words, en after linking is not a "real" package, is just a name for en_core_web_sm.

However, it doesn't work the other way. You can't refer directly to en_core_web_sm because your system doesn't know you have it installed. When you did spacy download en you basically did a pip install. So pip knows that you have a package named en installed for your python distribution, but knows nothing about the package en_core_web_sm. This package is just replacing package en when you import it, which means that package en is just a softlink to en_core_web_sm.

Of course, you can directly download en_core_web_sm, using the command: python -m spacy download en_core_web_sm, or you can even link the name en to other models as well. For example, you could do python -m spacy download en_core_web_lg and then python -m spacy link en_core_web_lg en. That would make en a name for en_core_web_lg, which is a large spaCy model for the English language.

🌐
GitHub
github.com › explosion › spaCy › discussions › 10895
Error: 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 · explosion/spaCy · Discussion #10895
That is, as the video explains, I directly replaced "en_core_web_sm" with the address on my Windows 11 notebook where the spacy library (python -m spacy download en). Thank you so much · Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... Hello everyone. I worked with nlp = spacy.load("en_core_web_sm") having generated .exe with PyInstaller, considering that in the python interpreter environment the software worked well.
Author   explosion
🌐
PyPI
pypi.org › project › spacy
spacy · PyPI
# Download best-matching version of specific model for your spaCy installation python -m spacy download en_core_web_sm # pip install .tar.gz archive or .whl from path or URL pip install /Users/you/en_core_web_sm-3.0.0.tar.gz pip install /Users/you/en_core_web_sm-3.0.0-py3-none-any.whl pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz · To load a model, use spacy.load() with the model name or a path to the model data directory.
      » pip install spacy
    
Published   Nov 17, 2025
Version   3.8.11
Homepage   https://spacy.io
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1296089 › unable-to-include-en-core-web-sm-model-in-azure-ml
Unable to Include en_core_web_sm Model in Azure ML Pipeline Environment - Microsoft Q&A
This will install the en_core_web_sm model from the official Spacy models repository. Load the en_core_web_sm model in your script: Once the en_core_web_sm model is installed in your environment, you can load it in your script using the spacy.load() function.
Find elsewhere
Top answer
1 of 2
1

Hello @Tinniam V Ganesh ,

Apologize for the delay in response.

As per the repro from our end it's working as expected without any error message:

  • Cluster - 9.1 LTS (includes Apache Spark 3.1.2, Scala 2.12)
  • Python - 3.8.10
  • spaCy version 3.3

I'm able to run without any issue:

For more details, refer to NLP with Python and spaCy - First Steps(Python).

Hope this will help. Please let us know if any further queries.

------------------------------

  • Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
  • Want a reminder to come back and check responses? Here is how to subscribe to a notification
  • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
2 of 2
0

Hi @PRADEEPCHEEKATLA
Here are the details

Cluster - 9.1 LTS (includes Apache Spark 3.1.2, Scala 2.12)
Python - 3.8.10
spaCy version 3.3

Code snippet

import spacy  
!python -m spacy download en_core_web_sm   
from spacy import displacy  
  
nlp = spacy.load("en_core_web_sm")  
# Process whole documents  
text = ("When Sebastian Thrun started working on self-driving cars at "  
        "Google in 2007, few people outside of the company took him "  
        "seriously. “I can tell you very senior CEOs of major American "  
        "car companies would shake my hand and turn away because I wasn’t "  
        "worth talking to,” said Thrun, in an interview with Recode earlier "  
        "this week.")  
doc = nlp(text)  

The error I get is "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."

I also see these messages. I don't know if it is relevant

/databricks/python3/lib/python3.8/site-packages/spacy/util.py:845: UserWarning: [W094] Model 'en_core_web_sm' (2.2.5) specifies an under-constrained spaCy version requirement: >=2.2.2. This can lead to compatibility problems with older versions, or as new spaCy versions are released, because the model may say it's compatible when it's not. Consider changing the "spacy_version" in your meta.json to a version range, with a lower and upper pin. For example: >=3.3.0,<3.4.0 warnings.warn(warn_msg)

Also the message when installing 'en_core_web_sm"

"Defaulting to user installation because normal site-packages is not writeable"

As I had mentioned, this worked briefly and then stopped.

🌐
Prodigy
support.prodi.gy › t › en-core-web-sm-model › 3914
en_core_web_sm model - spacy - Prodigy Support
February 21, 2021 - I realize that this is not a Prodigy problem, but without a pipeline everything stopped working. After installing the latest spaCy and en_core_web_sm, spacy.load ('en_core_web_sm') fails as shown in this snippet: (…
🌐
GitHub
github.com › explosion › spaCy › issues › 3844
Cannot load any other models except "en_core_web_sm" · Issue #3844 · explosion/spaCy
April 4, 2019 - How to reproduce the problem I installed spacy and the different models by following the instructions provided in the website e.g pip install -U spacy, python -m spacy download en_core_web_lg or python -m spacy download en_core_web_sm bu...
Published   Jun 13, 2019
🌐
spaCy
spacy.io › models
Trained Models & Pipelines · spaCy Models Documentation
python -m spacy download en_core_web_smimport spacynlp = spacy.load("en_core_web_sm")import en_core_web_smnlp = en_core_web_sm.load()doc = nlp("This is a sentence.")print([(w.text, w.pos_) for w in doc])
🌐
GitHub
github.com › explosion › spaCy › issues › 4577
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. · Issue #4577 · explosion/spaCy
November 2, 2019 - There was an error while loading. Please reload this page. ... 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
Published   Nov 02, 2019
🌐
Stack Overflow
stackoverflow.com › questions › 56564271 › unable-to-load-spacy-models-in-conda
python - Unable to load spacy models in conda - Stack Overflow
but when I write "import ... from shape (96) into shape (128). ... That sounds like the model you downloaded is not compatible with the spaCy version you're using....
🌐
Stack Overflow
stackoverflow.com › questions › 77996619 › spacy-erroring-out-with-i-load-en-core-web-sm-md-lg
python - spaCy erroring out with I load en_core_web_sm/md/lg - Stack Overflow
I have been trying to teach myself ... my first lines of code, nlp = spacy.load('en_core_web_sm') seems to have stopped working, but only on my PC. It still works fine on my laptop, but my laptop runs the code like 10 times slower, which is not ideal....