How to check the version of scipy

PythonScipy

Python Problem Overview


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

Python Solutions


Solution 1 - Python

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.

Solution 2 - Python

Using command line:

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

Solution 3 - Python

on command line

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

Solution 4 - Python

From the python command prompt:

import scipy
print scipy.__version__

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

print (scipy.__version__)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionOD IUMView Question on Stackoverflow
Solution 1 - PythonzhangxaochenView Answer on Stackoverflow
Solution 2 - PythonMaksoodView Answer on Stackoverflow
Solution 3 - PythonjsdevView Answer on Stackoverflow
Solution 4 - PythonDinusha ThilakarathnaView Answer on Stackoverflow