OD IUM
OD IUM

Reputation: 1624

How to check the version of scipy

How can I check the version of scipy installed on my system?

Upvotes: 108

Views: 190156

Answers (6)

Jens-Erik Jepsen
Jens-Erik Jepsen

Reputation: 1

Use pip list

This will give you a list of all installed Python modules with version number.

(Linux/Unix) Use pip list | grep scipy to filter out all unnecessary information about other packages.

(Windows) Use pip list | findstr scipy to filter out all unnecessary information about other packages.

Upvotes: 0

sonia
sonia

Reputation: 115

Another way is pip show scipy. It will give the entire summary along with location where it is installed.

Upvotes: 2

zhangxaochen
zhangxaochen

Reputation: 34047

In [95]: import scipy

In [96]: scipy.__version__
Out[96]: '0.12.0'

In [104]: scipy.version.*version?
scipy.version.full_version
scipy.version.short_version
scipy.version.version

In [105]: scipy.version.full_version
Out[105]: '0.12.0'

In [106]: scipy.version.git_revision
Out[106]: 'cdd6b32233bbecc3e8cbc82531905b74f3ea66eb'

In [107]: scipy.version.release
Out[107]: True

In [108]: scipy.version.short_version
Out[108]: '0.12.0'

In [109]: scipy.version.version
Out[109]: '0.12.0'

See SciPy doveloper documentation for reference.

Upvotes: 131

Dinusha Thilakarathna
Dinusha Thilakarathna

Reputation: 422

From the python command prompt:

import scipy
print scipy.__version__

In python 3 you'll need to change it to:

print (scipy.__version__)

Upvotes: 3

Maksood
Maksood

Reputation: 1200

Using command line:

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

Upvotes: 18

jsdev
jsdev

Reputation: 672

on command line

 example$:python
 >>> import scipy
 >>> scipy.__version__
 '0.9.0'

Upvotes: 12

Related Questions