How do I check which version of NumPy I'm using?

How can I check which version of NumPy I'm using?


Solution 1:

import numpy
numpy.version.version

Solution 2:

>> import numpy
>> print numpy.__version__

Solution 3:

From the command line, you can simply issue:

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

Or:

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