spacy 3.8.7


pip install spacy

  Latest version

Released: May 23, 2025


Meta
Author: Explosion
Requires Python: <3.14,>=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Console

Intended Audience
  • Developers
  • Science/Research

License
  • OSI Approved :: MIT License

Operating System
  • POSIX :: Linux
  • MacOS :: MacOS X
  • Microsoft :: Windows

Programming Language
  • Cython
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Topic
  • Scientific/Engineering

spaCy: Industrial-strength NLP

spaCy is a library for advanced Natural Language Processing in Python and Cython. It's built on the very latest research, and was designed from day one to be used in real products.

spaCy comes with pretrained pipelines and currently supports tokenization and training for 70+ languages. It features state-of-the-art speed and neural network models for tagging, parsing, named entity recognition, text classification and more, multi-task learning with pretrained transformers like BERT, as well as a production-ready training system and easy model packaging, deployment and workflow management. spaCy is commercial open-source software, released under the MIT license.

๐Ÿ’ซ Version 3.8 out now! Check out the release notes here.

tests Current Release Version pypi Version conda Version Python wheels Code style: black
PyPi downloads Conda downloads

๐Ÿ“– Documentation

Documentation
โญ๏ธ spaCy 101 New to spaCy? Here's everything you need to know!
๐Ÿ“š Usage Guides How to use spaCy and its features.
๐Ÿš€ New in v3.0 New features, backwards incompatibilities and migration guide.
๐Ÿช Project Templates End-to-end workflows you can clone, modify and run.
๐ŸŽ› API Reference The detailed reference for spaCy's API.
โฉ GPU Processing Use spaCy with CUDA-compatible GPU processing.
๐Ÿ“ฆ Models Download trained pipelines for spaCy.
๐Ÿฆ™ Large Language Models Integrate LLMs into spaCy pipelines.
๐ŸŒŒ Universe Plugins, extensions, demos and books from the spaCy ecosystem.
โš™๏ธ spaCy VS Code Extension Additional tooling and features for working with spaCy's config files.
๐Ÿ‘ฉโ€๐Ÿซ Online Course Learn spaCy in this free and interactive online course.
๐Ÿ“ฐ Blog Read about current spaCy and Prodigy development, releases, talks and more from Explosion.
๐Ÿ“บ Videos Our YouTube channel with video tutorials, talks and more.
๐Ÿ”ด Live Stream Join Matt as he works on spaCy and chat about NLP, live every week.
๐Ÿ›  Changelog Changes and version history.
๐Ÿ’ Contribute How to contribute to the spaCy project and code base.
๐Ÿ‘• Swag Support us and our work with unique, custom-designed swag!
Tailored Solutions Custom NLP consulting, implementation and strategic advice by spaCyโ€™s core development team. Streamlined, production-ready, predictable and maintainable. Send us an email or take our 5-minute questionnaire, and well'be in touch! Learn more โ†’

๐Ÿ’ฌ Where to ask questions

The spaCy project is maintained by the spaCy team. Please understand that we won't be able to provide individual support via email. We also believe that help is much more valuable if it's shared publicly, so that more people can benefit from it.

Type Platforms
๐Ÿšจ Bug Reports GitHub Issue Tracker
๐ŸŽ Feature Requests & Ideas GitHub Discussions ยท Live Stream
๐Ÿ‘ฉโ€๐Ÿ’ป Usage Questions GitHub Discussions ยท Stack Overflow
๐Ÿ—ฏ General Discussion GitHub Discussions ยท Live Stream

Features

  • Support for 70+ languages
  • Trained pipelines for different languages and tasks
  • Multi-task learning with pretrained transformers like BERT
  • Support for pretrained word vectors and embeddings
  • State-of-the-art speed
  • Production-ready training system
  • Linguistically-motivated tokenization
  • Components for named entity recognition, part-of-speech-tagging, dependency parsing, sentence segmentation, text classification, lemmatization, morphological analysis, entity linking and more
  • Easily extensible with custom components and attributes
  • Support for custom models in PyTorch, TensorFlow and other frameworks
  • Built in visualizers for syntax and NER
  • Easy model packaging, deployment and workflow management
  • Robust, rigorously evaluated accuracy

๐Ÿ“– For more details, see the facts, figures and benchmarks.

โณ Install spaCy

For detailed installation instructions, see the documentation.

  • Operating system: macOS / OS X ยท Linux ยท Windows (Cygwin, MinGW, Visual Studio)
  • Python version: Python >=3.7, <3.13 (only 64 bit)
  • Package managers: pip ยท conda (via conda-forge)

pip

Using pip, spaCy releases are available as source packages and binary wheels. Before you install spaCy and its dependencies, make sure that your pip, setuptools and wheel are up to date.

pip install -U pip setuptools wheel
pip install spacy

To install additional data tables for lemmatization and normalization you can run pip install spacy[lookups] or install spacy-lookups-data separately. The lookups package is needed to create blank models with lemmatization data, and to lemmatize in languages that don't yet come with pretrained models and aren't powered by third-party libraries.

When using pip it is generally recommended to install packages in a virtual environment to avoid modifying system state:

python -m venv .env
source .env/bin/activate
pip install -U pip setuptools wheel
pip install spacy

conda

You can also install spaCy from conda via the conda-forge channel. For the feedstock including the build recipe and configuration, check out this repository.

conda install -c conda-forge spacy

Updating spaCy

Some updates to spaCy may require downloading new statistical models. If you're running spaCy v2.0 or higher, you can use the validate command to check if your installed models are compatible and if not, print details on how to update them:

pip install -U spacy
python -m spacy validate

If you've trained your own models, keep in mind that your training and runtime inputs must match. After updating spaCy, we recommend retraining your models with the new version.

๐Ÿ“– For details on upgrading from spaCy 2.x to spaCy 3.x, see the migration guide.

๐Ÿ“ฆ Download model packages

Trained pipelines for spaCy can be installed as Python packages. This means that they're a component of your application, just like any other module. Models can be installed using spaCy's download command, or manually by pointing pip to a path or URL.

Documentation
Available Pipelines Detailed pipeline descriptions, accuracy figures and benchmarks.
Models Documentation Detailed usage and installation instructions.
Training How to train your own pipelines on your data.
# 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

Loading and using models

To load a model, use spacy.load() with the model name or a path to the model data directory.

import spacy
nlp = spacy.load("en_core_web_sm")
doc = nlp("This is a sentence.")

You can also import a model directly via its full name and then call its load() method with no arguments.

import spacy
import en_core_web_sm

nlp = en_core_web_sm.load()
doc = nlp("This is a sentence.")

๐Ÿ“– For more info and examples, check out the models documentation.

โš’ Compile from source

The other way to install spaCy is to clone its GitHub repository and build it from source. That is the common way if you want to make changes to the code base. You'll need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, virtualenv and git installed. The compiler part is the trickiest. How to do that depends on your system.

Platform
Ubuntu Install system-level dependencies via apt-get: sudo apt-get install build-essential python-dev git .
Mac Install a recent version of XCode, including the so-called "Command Line Tools". macOS and OS X ship with Python and git preinstalled.
Windows Install a version of the Visual C++ Build Tools or Visual Studio Express that matches the version that was used to compile your Python interpreter.

For more details and instructions, see the documentation on compiling spaCy from source and the quickstart widget to get the right commands for your platform and Python version.

git clone https://github.com/explosion/spaCy
cd spaCy

python -m venv .env
source .env/bin/activate

# make sure you are using the latest pip
python -m pip install -U pip setuptools wheel

pip install -r requirements.txt
pip install --no-build-isolation --editable .

To install with extras:

pip install --no-build-isolation --editable .[lookups,cuda102]

๐Ÿšฆ Run tests

spaCy comes with an extensive test suite. In order to run the tests, you'll usually want to clone the repository and build spaCy from source. This will also install the required development dependencies and test utilities defined in the requirements.txt.

Alternatively, you can run pytest on the tests from within the installed spacy package. Don't forget to also install the test utilities via spaCy's requirements.txt:

pip install -r requirements.txt
python -m pytest --pyargs spacy
4.0.0.dev3 Apr 22, 2024
4.0.0.dev2 Jan 25, 2024
4.0.0.dev1 Jun 23, 2023
3.8.7 May 23, 2025
3.8.6 May 19, 2025
3.8.5 Apr 01, 2025
3.8.4 Jan 14, 2025
3.8.3 Dec 11, 2024
3.8.2 Oct 01, 2024
3.8.1 Sep 14, 2024
3.8.0 Sep 11, 2024
3.7.6 Aug 20, 2024
3.7.5 Jun 05, 2024
3.7.4 Feb 15, 2024
3.7.3 Feb 06, 2024
3.7.2 Oct 16, 2023
3.7.1 Oct 05, 2023
3.7.0 Oct 02, 2023
3.6.1 Aug 08, 2023
3.6.0 Jul 07, 2023
3.6.0.dev0 May 09, 2023
3.5.4 Jun 28, 2023
3.5.3 May 15, 2023
3.5.2 Apr 12, 2023
3.5.1 Mar 10, 2023
3.5.0 Jan 20, 2023
3.4.4 Dec 14, 2022
3.4.3 Nov 10, 2022
3.4.2 Oct 20, 2022
3.4.1 Jul 26, 2022
3.4.0 Jul 12, 2022
3.3.3 May 25, 2023
3.3.2 Dec 16, 2022
3.3.1 Jun 07, 2022
3.3.0 Apr 29, 2022
3.2.6 May 25, 2023
3.2.5 Dec 16, 2022
3.2.4 Mar 29, 2022
3.2.3 Mar 01, 2022
3.2.2 Feb 11, 2022
3.2.1 Dec 07, 2021
3.2.0 Nov 05, 2021
3.1.7 Dec 16, 2022
3.1.6 Mar 30, 2022
3.1.5 Mar 01, 2022
3.1.4 Oct 29, 2021
3.1.3 Sep 20, 2021
3.1.2 Aug 20, 2021
3.1.1 Jul 20, 2021
3.1.0 Jul 07, 2021
3.0.9 Dec 16, 2022
3.0.8 Mar 01, 2022
3.0.7 Jul 23, 2021
3.0.6 Apr 23, 2021
3.0.5 Mar 10, 2021
3.0.4 Mar 10, 2021
3.0.3 Feb 14, 2021
3.0.2 Feb 14, 2021
3.0.1 Feb 02, 2021
3.0.0 Feb 01, 2021
2.3.9 Dec 16, 2022
2.3.8 Oct 19, 2022
2.3.7 Jun 04, 2021
2.3.6 May 18, 2021
2.3.5 Dec 11, 2020
2.3.4 Nov 25, 2020
2.3.3 Nov 24, 2020
2.3.3.dev0 Nov 23, 2020
2.3.2 Jul 13, 2020
2.3.1 Jul 07, 2020
2.3.0 Jun 16, 2020
2.3.0.dev1 Jun 09, 2020
2.2.4 Mar 12, 2020
2.2.3 Nov 21, 2019
2.2.3.dev0 Nov 21, 2019
2.2.2 Oct 31, 2019
2.2.2.dev4 Oct 30, 2019
2.2.2.dev3 Oct 29, 2019
2.2.2.dev0 Oct 22, 2019
2.2.1 Oct 03, 2019
2.2.0 Oct 02, 2019
2.2.0.dev17 Oct 01, 2019
2.2.0.dev15 Sep 28, 2019
2.2.0.dev13 Sep 28, 2019
2.2.0.dev11 Sep 27, 2019
2.2.0.dev10 Sep 27, 2019
2.1.9 Oct 28, 2019
2.1.8 Aug 08, 2019
2.1.7 Aug 01, 2019
2.1.7.dev0 Jul 28, 2019
2.1.6 Jul 12, 2019
2.1.5 Jul 12, 2019
2.1.4 May 11, 2019
2.1.3 Mar 23, 2019
2.1.2 Mar 22, 2019
2.1.1 Mar 20, 2019
2.1.1.dev0 Mar 19, 2019
2.1.0 Mar 18, 2019
2.0.18 Dec 01, 2018
2.0.18.dev1 Dec 01, 2018
2.0.18.dev0 Dec 01, 2018
2.0.17 Nov 26, 2018
2.0.17.dev1 Oct 29, 2018
2.0.17.dev0 Oct 28, 2018
2.0.16 Oct 15, 2018
2.0.16.dev0 Oct 15, 2018
2.0.15 Oct 15, 2018
2.0.14.dev1 Oct 14, 2018
2.0.14.dev0 Oct 14, 2018
2.0.13 Oct 13, 2018
2.0.13.dev4 Oct 13, 2018
2.0.13.dev2 Aug 09, 2018
2.0.13.dev1 Aug 09, 2018
2.0.13.dev0 Aug 09, 2018
2.0.12 Jul 21, 2018
2.0.12.dev1 Jul 21, 2018
2.0.12.dev0 Apr 10, 2018
2.0.11 Apr 04, 2018
2.0.11.dev0 Apr 04, 2018
2.0.10 Mar 24, 2018
2.0.10.dev0 Mar 15, 2018
2.0.9 Feb 22, 2018
2.0.8 Feb 18, 2018
2.0.7 Feb 02, 2018
2.0.6 Feb 01, 2018
2.0.6.dev0 Jan 29, 2018
2.0.5 Dec 07, 2017
2.0.5.dev0 Dec 07, 2017
2.0.4 Dec 06, 2017
2.0.4.dev0 Dec 06, 2017
2.0.3 Nov 15, 2017
2.0.3.dev0 Nov 15, 2017
2.0.2 Nov 08, 2017
2.0.2.dev0 Nov 08, 2017
2.0.1 Nov 08, 2017
2.0.1.dev0 Nov 08, 2017
2.0.0 Nov 07, 2017
1.10.1 Mar 23, 2018
1.10.0 Nov 07, 2017
1.9.0 Jul 22, 2017
1.8.2 Apr 26, 2017
1.8.1 Apr 23, 2017
1.8.0 Apr 16, 2017
1.7.5 Apr 07, 2017
1.7.3 Mar 26, 2017
1.7.2 Mar 20, 2017
1.7.1 Mar 19, 2017
1.7.0 Mar 18, 2017
1.6.0 Jan 16, 2017
1.5.1 Jan 12, 2017
1.5.0 Dec 27, 2016
1.4.0 Dec 18, 2016
1.3.0 Dec 03, 2016
1.2.0 Nov 04, 2016
1.1.2 Oct 23, 2016
1.1.1 Oct 23, 2016
1.1.0 Oct 23, 2016
1.0.5 Oct 20, 2016
1.0.4 Oct 20, 2016
1.0.3 Oct 19, 2016
1.0.2 Oct 19, 2016
1.0.1 Oct 19, 2016
0.101.0 May 10, 2016
0.100.7 May 04, 2016
0.100.6 Mar 08, 2016
0.100.5 Feb 07, 2016
0.100.4 Feb 07, 2016
0.100.3 Feb 06, 2016
0.100.2 Jan 21, 2016
0.100.1 Jan 20, 2016
0.100.0 Jan 19, 2016
0.99 Nov 08, 2015
0.98 Nov 03, 2015
0.97 Oct 23, 2015
0.95 Oct 18, 2015
0.94 Oct 09, 2015
0.93 Sep 22, 2015
0.92 Sep 21, 2015
0.91 Sep 21, 2015
0.90 Sep 15, 2015
0.89 Jul 29, 2015
0.88 Jul 08, 2015
0.87 Jun 30, 2015
0.86 Jun 24, 2015
0.85 Jun 07, 2015
0.84 May 12, 2015
0.83 Apr 16, 2015
0.82 Apr 13, 2015
0.81 Apr 13, 2015
0.80 Apr 12, 2015
0.70 Mar 05, 2015
0.68 Feb 27, 2015
0.67 Feb 24, 2015
0.65 Feb 16, 2015
0.64 Feb 16, 2015
0.63 Feb 11, 2015
0.62 Feb 11, 2015
0.61 Feb 10, 2015
0.60 Feb 09, 2015
0.52 Feb 07, 2015
0.51 Feb 07, 2015
0.40 Feb 01, 2015
0.33 Jan 25, 2015
0.32 Jan 25, 2015
0.31 Jan 25, 2015

Wheel compatibility matrix

Platform CPython 3.9 CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13
macosx_10_13_x86_64
macosx_10_9_x86_64
macosx_11_0_arm64
manylinux2014_aarch64
manylinux2014_x86_64
manylinux_2_17_aarch64
manylinux_2_17_x86_64
musllinux_1_2_aarch64
musllinux_1_2_x86_64
win_amd64

Files in release

spacy-3.8.7-cp310-cp310-macosx_10_9_x86_64.whl (6.3MiB)
spacy-3.8.7-cp310-cp310-macosx_11_0_arm64.whl (6.0MiB)
spacy-3.8.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (29.8MiB)
spacy-3.8.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (30.0MiB)
spacy-3.8.7-cp310-cp310-musllinux_1_2_aarch64.whl (29.1MiB)
spacy-3.8.7-cp310-cp310-musllinux_1_2_x86_64.whl (29.9MiB)
spacy-3.8.7-cp310-cp310-win_amd64.whl (14.2MiB)
spacy-3.8.7-cp311-cp311-macosx_10_9_x86_64.whl (6.4MiB)
spacy-3.8.7-cp311-cp311-macosx_11_0_arm64.whl (6.1MiB)
spacy-3.8.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (31.2MiB)
spacy-3.8.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31.5MiB)
spacy-3.8.7-cp311-cp311-musllinux_1_2_aarch64.whl (30.5MiB)
spacy-3.8.7-cp311-cp311-musllinux_1_2_x86_64.whl (31.3MiB)
spacy-3.8.7-cp311-cp311-win_amd64.whl (14.2MiB)
spacy-3.8.7-cp312-cp312-macosx_10_13_x86_64.whl (6.0MiB)
spacy-3.8.7-cp312-cp312-macosx_11_0_arm64.whl (5.6MiB)
spacy-3.8.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (31.9MiB)
spacy-3.8.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (32.4MiB)
spacy-3.8.7-cp312-cp312-musllinux_1_2_aarch64.whl (30.5MiB)
spacy-3.8.7-cp312-cp312-musllinux_1_2_x86_64.whl (31.5MiB)
spacy-3.8.7-cp312-cp312-win_amd64.whl (13.3MiB)
spacy-3.8.7-cp313-cp313-macosx_10_13_x86_64.whl (5.9MiB)
spacy-3.8.7-cp313-cp313-macosx_11_0_arm64.whl (5.6MiB)
spacy-3.8.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (31.6MiB)
spacy-3.8.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31.9MiB)
spacy-3.8.7-cp313-cp313-musllinux_1_2_aarch64.whl (30.1MiB)
spacy-3.8.7-cp313-cp313-musllinux_1_2_x86_64.whl (31.1MiB)
spacy-3.8.7-cp313-cp313-win_amd64.whl (13.3MiB)
spacy-3.8.7-cp39-cp39-macosx_10_9_x86_64.whl (6.3MiB)
spacy-3.8.7-cp39-cp39-macosx_11_0_arm64.whl (6.0MiB)
spacy-3.8.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (29.7MiB)
spacy-3.8.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (30.0MiB)
spacy-3.8.7-cp39-cp39-musllinux_1_2_aarch64.whl (29.0MiB)
spacy-3.8.7-cp39-cp39-musllinux_1_2_x86_64.whl (29.8MiB)
spacy-3.8.7-cp39-cp39-win_amd64.whl (14.2MiB)
spacy-3.8.7.tar.gz (1.3MiB)
Extras:
Dependencies:
spacy-legacy (<3.1.0,>=3.0.11)
spacy-loggers (<2.0.0,>=1.0.0)
murmurhash (<1.1.0,>=0.28.0)
cymem (<2.1.0,>=2.0.2)
preshed (<3.1.0,>=3.0.2)
thinc (<8.4.0,>=8.3.4)
wasabi (<1.2.0,>=0.9.1)
srsly (<3.0.0,>=2.4.3)
catalogue (<2.1.0,>=2.0.6)
weasel (<0.5.0,>=0.1.0)
typer (<1.0.0,>=0.3.0)
tqdm (<5.0.0,>=4.38.0)
numpy (>=1.15.0)
numpy (>=1.19.0)
requests (<3.0.0,>=2.13.0)
pydantic (!=1.8,!=1.8.1,<3.0.0,>=1.7.4)
jinja2
setuptools
packaging (>=20.0)
langcodes (<4.0.0,>=3.2.0)