Knowledge base dedicated to Linux and applied mathematics.

Home > Linux > Tip of the day > **Check/find version of numpy i’m using**

All the versions of this article: [English] [français]

To check/find the version of numpy you are using:

`[root@user] > python`

Python 2.7.5 (default, Feb 8 2014, 08:16:49)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import numpy

>>> print numpy.__version__

1.8.0

>>> numpy.version.version

'1.8.0'

Note that the first way can be used for other python modules. In single commande line:

`[root@user] > python -c "import numpy; print numpy.__version__"`

1.8.0