🌐
spaCy
spacy.io › usage
Install spaCy · spaCy Usage Documentation
If you’re using an old version, consider upgrading to the latest release. Note that while spaCy supports tokenization for a variety of languages, not all of them come with trained pipelines. To only use the tokenizer, import the language’s Language class instead, for example from spacy.lang.fr import French.
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
The spaCy v3 trained pipelines are designed to be efficient and configurable. For example, multiple components can share a common “token-to-vector” model and it’s easy to swap out or disable the lemmatizer. The pipelines are designed to be efficient in terms of speed and size and work well when the pipeline is run in full. When modifying a trained pipeline, it’s important ...
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
We’re very happy to see the spaCy community grow and include a mix of people from all kinds of different backgrounds – computational linguistics, data science, deep learning, research and more. If you’d like to get involved, below are some answers to the most important questions and resources ...
🌐
PyPI
pypi.org › project › spacy
spacy · PyPI
import spacy import en_core_web_sm nlp = en_core_web_sm.load() doc = nlp("This is a sentence.")
      » pip install spacy
    
Published   Nov 17, 2025
Version   3.8.11
Homepage   https://spacy.io
🌐
Stack Overflow
stackoverflow.com › questions › 74531051 › python-packages-not-installed
spacy - Python Packages not installed - Stack Overflow
Make sure you are installing into the same python enivronment as you are running python in. Use python -m pip install spacy; python filename.py to be sure the python is the same
🌐
GitHub
github.com › explosion › spacy-models
GitHub - explosion/spacy-models: 💫 Models for the spaCy Natural Language Processing (NLP) library
import spacy import en_core_web_sm nlp = en_core_web_sm.load() doc = nlp(u"This is a sentence.")
Starred by 1.8K users
Forked by 313 users
Languages   Python
🌐
spaCy
spacy.io › usage › models
Models & Languages · spaCy Usage Documentation
If you’ve trained your own pipeline, you can use the spacy package command to generate the required meta data and turn it into a loadable package. Pipeline packages are regular Python packages, so you can also import them as a package using Python’s native import syntax, and then call the load method to load the data and return an nlp object:
🌐
GitHub
github.com › explosion › spaCy
GitHub - explosion/spaCy: 💫 Industrial-strength Natural Language Processing (NLP) in Python
import spacy import en_core_web_sm nlp = en_core_web_sm.load() doc = nlp("This is a sentence.")
Starred by 32.9K users
Forked by 4.6K users
Languages   Python 54.1% | MDX 31.2% | Cython 10.5% | JavaScript 2.6% | Sass 0.8% | TypeScript 0.4%
🌐
spaCy
spacy.io › models › en
English · spaCy Models Documentation
spaCy is a free open-source library for Natural Language Processing in Python. It features NER, POS tagging, dependency parsing, word vectors and more.

software library for natural language processing

spaCy Tailored Pipelines
Advanced NLP with spaCy: A free online course
pypi Version
conda Version
spaCy (/speɪˈsiː/ spay-SEE) is an open-source software library for advanced natural language processing, written in the programming languages Python and Cython. The library is published under the MIT license and its main … Wikipedia
Factsheet
spaCy
Original author Matthew Honnibal
Developers Explosion AI, various
Factsheet
spaCy
Original author Matthew Honnibal
Developers Explosion AI, various
🌐
spaCy
spacy.io
spaCy · Industrial-strength Natural Language Processing in Python
spaCy is a free open-source library for Natural Language Processing in Python. It features NER, POS tagging, dependency parsing, word vectors and more.
Find elsewhere
🌐
ProjectPro
projectpro.io › recipes › install-and-use-spacy-models
How to install and use Spacy models? -
September 6, 2023 - !python -m spacy download en_core_web_sm-2.2.0 · import spacy load_model = spacy.load("en_core_web_sm") doc = load_model("Hi my name is mak") doc · The pip install en_core_web_sm command is used to install en_core_web_sm model in SpaCy.
🌐
GeeksforGeeks
geeksforgeeks.org › python › install-specific-version-of-spacy-using-python-pip
Install Specific Version of Spacy using Python PIP - GeeksforGeeks
July 23, 2025 - The installed version 3.2.3 and many other details can be seen in the image above after typing the above commands in the terminal/command line ensuring that you have installed the desired version of SpaCy. In this example, below code imports the SpaCy library and loads the English language model "en_core_web_sm."
🌐
Penn Libraries
guides.library.upenn.edu › penntdm › python › spacy
SpaCy Package - Text Analysis - Guides at Penn Libraries
We can use spaCy’s built-in displaCy visualizer to visualize nlp by executing displacy.serve. The displaCy can either take a single nlp or a list of nlp objects as its first argument. Note that there are yet no solutions available at the moment to display web content on Python consoles. A way to see the visualization is through the Jupyter notebook. # Import SpaCy in Jupyter notebook import sys !{sys.executable} -m pip install spacy !{sys.executable} -m spacy download en !python -m spacy download en_core_web_sm import spacy # Import displacy from spacy from spacy import displacy load_model = spacy.load('en_core_web_sm') nlp = load_model("Apple's name was inspired by his visit to an apple farm while on a fruitarian diet.") # Visualize nlp displacy.render(nlp, style="dep", jupyter=True)
🌐
Dataiku
doc.dataiku.com › dss › latest › python › spacy.html
Using SpaCy — Dataiku DSS 14 documentation
import spacy nlp = spacy.load("en_core_web_sm") doc = nlp(u"This is an example sentence.")
🌐
scispacy
allenai.github.io › scispacy
scispacy | SpaCy models for biomedical text processing
scispaCy is a Python package containing spaCy models for processing biomedical, scientific or clinical text. Just looking to test out the models on your data? Check out our demo. ... Our models achieve performance within 3% of published state of the art dependency parsers and within 0.4% accuracy of state of the art biomedical POS taggers. import scispacy import spacy nlp = spacy.load("en_core_sci_sm") text = """ Myeloid derived suppressor cells (MDSC) are immature myeloid cells with immunosuppressive activity.
🌐
GitHub
github.com › explosion › spaCy › discussions › 13144
Can't Import Spacy even after Installing · explosion/spaCy · Discussion #13144
(ml) username@ServerName:~$ python Python 3.11.5 (main, Sep 11 2023, 13:54:46) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import spacy ^C^C^C
Author   explosion
🌐
GitHub
github.com › explosion › spaCy › blob › master › README.md
spaCy/README.md at master · explosion/spaCy
import spacy import en_core_web_sm nlp = en_core_web_sm.load() doc = nlp("This is a sentence.")
Author   explosion
🌐
Real Python
realpython.com › natural-language-processing-spacy-python
Natural Language Processing With spaCy in Python – Real Python
February 1, 2025 - While you can use regular expressions to extract entities (such as phone numbers), rule-based matching in spaCy is more powerful than regex alone, because you can include semantic or grammatical filters. For example, with rule-based matching, you can extract a first name and a last name, which are always proper nouns: ... >>> import spacy >>> nlp = spacy.load("en_core_web_sm") >>> about_text = ( ...
🌐
Packtpub
subscription.packtpub.com › book › data › 9781800563353 › 2 › ch02lvl1sec05 › installing-spacy
Chapter 1: Getting Started with spaCy | Mastering spaCy
If you didn't encounter any problems so far, then that means spaCy is installed and running on your system. You should be able to import spaCy into your Python shell:
🌐
Medium
medium.com › @krishnusai › mastering-natural-language-processing-with-spacy-a-comprehensive-guide-5e67ce30d6ab
SpaCy in Python. Natural Language Processing (NLP) has… | by krishna sai | Medium
April 3, 2024 - Open a terminal or command prompt and run the command: pip install spacy. Additionally, download the language model you intend to use. For example, python -m spacy download en_core_web_sm downloads the English language model. Importing spaCy: In your Python script, import spaCy using the following statement: import spacy...
Top answer
1 of 14
66

Yes, I can confirm that your solution is correct. The version of spaCy you downloaded from pip is v2.0, which includes a lot of new features, but also a few changes to the API. One of them is that all language data has been moved to a submodule spacy.lang to keep thing cleaner and better organised. So instead of using spacy.en, you now import from spacy.lang.en.

- from spacy.en import English
+ from spacy.lang.en import English

However, it's also worth mentioning that what you download when you run spacy download en is not the same as spacy.lang.en. The language data shipped with spaCy includes the static data like tokenization rules, stop words or lemmatization tables. The en package that you can download is a shortcut for the statistical model en_core_web_sm. It includes the language data, as well as binary weight to enable spaCy to make predictions for part-of-speech tags, dependencies and named entities.

Instead of just downloading en, I'd actually recommend using the full model name, which makes it much more obvious what's going on:

python -m spacy download en_core_web_sm
nlp = spacy.load("en_core_web_sm")

When you call spacy.load, spaCy does the following:

  1. Find the installed model named "en_core_web_sm" (a package or shortcut link).
  2. Read its meta.json and check which language it's using (in this case, spacy.lang.en), and how its processing pipeline should look (in this case, tagger, parser and ner).
  3. Initialise the language class and add the pipeline to it.
  4. Load in the binary weights from the model data so pipeline components (like the tagger, parser or entity recognizer) can make predictions.

See this section in the docs for more details.

2 of 14
16

I used the following command for installing spacy from anaconda distribution.

conda install -c conda-forge spacy

and after that, I was able to download English using the following command without any error.

 python -m spacy download en