[python] How to check the version of scipy

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

This question is related to python scipy

The answer is


Using command line:

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

From the python command prompt:

import scipy
print scipy.__version__

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

print (scipy.__version__)

on command line

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