How to check numpy version

(FYI this question has actually been edited bereason both the question and also answer are not platform certain.)






From the command line, you can ssuggest issue:

python -c "import numpy; print(numpy.variation.version)"Or:

python -c "import numpy; print(numpy.__version__)"

pip listShould geneprice a list of packperiods. Scroll via to numpy.

You watching: How to check numpy version

...nbpresent (3.0.2)networkx (1.11)nltk (3.2.2)nose (1.3.7)notebook (5.0.0)numba (0.32.0+0.g139e4c6.dirty)numexpr (2.6.2)numpy (1.11.3)
We deserve to use pip freeze to acquire any type of Python package variation without opening the Python shell.

pip freeze | grep "numpy"
If you"re making use of NumPy from the Anaconda distribution, then you can just do:

$ conda list | grep numpynumpy 1.11.3 py35_0This offers the Python variation too.

See more: " Microsoft Office Cannot Verify The License For This Product 2013

If you desire something fancy, then use numexpr

It provides lot of indevelopment as you have the right to see below:

In <692>: import numexprIn <693>: numexpr.print_versions()-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=Numexpr version: 2.6.2NumPy version: 1.13.3Python version: 3.6.3 |Anaconda practice (64-bit)| (default, Oct 13 2017, 12:02:49)Platform: linux-x86_64AMD/Intel CPU? TrueVML available? FalseNumber of threads provided by default: 8 (out of 48 detected cores)-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
You have the right to gain numpy variation making use of Terminal or a Python code.

In a Terminal (bash) utilizing Ubuntu:

pip list | grep numpyIn python 3.6.7, this code mirrors the numpy version:

import numpyprint (numpy.variation.version)If you insert this code in the file, you have the right to compile it:

python shownumpy.pyor

python3 shownumpy.pyI"ve acquired this output:

For Python 3.X print syntax:

python -c "import numpy; print (numpy.version.version)"Or

python -c "import numpy; print(numpy.__version__)"
Just a slight solution change for checking the variation of numpy through Python,

import numpy as np print("Numpy Version:",np.__version__)Or,

import numpy as npprint("Numpy Version:",np.version.version)My projects in PyCinjury are presently running version


pip present numpyand for pip3

pip3 display numpyWorks on both windows and linux. Should occupational on mac too if you are using pip.

See more: Download Microsoft Touch Pack For Windows 10 Preview, Microsoft Touch Pack

Pure Python line that have the right to be executed from the terminal (both 2.X and also 3.X versions):

python -c "import numpy; print(numpy.variation.version)"If you are already inside Python, then:

import numpyprint(numpy.version.version)
It is excellent to recognize the version of numpy you run, however strictly speaking if you simply must have particular version on your mechanism you deserve to create prefer this:

pip install numpy==1.14.3 and this will certainly install the version you need and also uninstall various other versions of numpy.

Highly energetic question. Earn 10 reputation in order to answer this question. The reputation requirement helps protect this question from spam and also non-answer task.

Not the answer you're looking for? Browse various other inquiries tagged python numpy version or ask your very own question.

site design / logo design © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.4.6.38996

Your privacy

By clicking “Accept all cookies”, you agree Stack Exadjust have the right to save cookies on your tool and discshed information in accordance through our Cookie Policy.