How to verify installed spaCy version?

38,911

Solution 1

You can also do python -m spacy info. If you're updating an existing installation, you might want to run python -m spacy validate, to check that the models you already have are compatible with the version you just installed.

Solution 2

Use command - python -m spacy info to check spacy version

Solution 3

If you ask yourself: How to find any Python pkg version? This one should be used/ as well, not only for Spacy ofc:

The easiest (if you installed it using pip):

pip show spacy #pip3 if you installed it using pip3

Or:

python -m spacy --version

Or... just run python (with the version that you installed Spacy on) and use the version method

If you want to know the version of any Python pkg (package) you are working with this would work for you every time!

run:

python
>> import spacy
>> print(spacy.__version__)

Easy to do it with Pycharm built-in IDE console (Jupyter notebook)

Or, Either:

python -m spacy --version

or

python3 -m spacy --version #depends where it is install (python or python3)

Solution 4

If you installed with pip you can try to find it with pip list and get version info with pip show <name>

Solution 5

If you are using python3, you can use your package manager (pip) pip3 list and find spacy's version.
For Python 2.7+ pip list does the job

Share:
38,911

Related videos on Youtube

Pramod S. Nikam
Author by

Pramod S. Nikam

Lets make tools Open Source! Do visit http://www.techprehension.com AlwaysReadyToHelp

Updated on July 09, 2022

Comments

  • Pramod S. Nikam
    Pramod S. Nikam almost 2 years

    I have installed spaCy with python for my NLP project.

    I have installed that using pip. How can I verify installed spaCy version?

    using

    pip install -U spacy
    

    What is command to verify installed spaCy version?

  • hc_dev
    hc_dev over 2 years
    For me a duplicate, one year after syllogism's answer it's still the same command. Can you expand to make your answer unique?
  • hc_dev
    hc_dev over 2 years
    I like the different perspective in your answer (persistent versions list). To make it stand out, you could (a) link to the respective pip-docs, (b) explain what the other benefits of pip freeze are (list all dependencies + version in a file).