tags:

views:

1073

answers:

3

How can I check which version of Numpy I'm using? I'm using Mac OS X 10.6.1 Snow Leopard.

+2  A: 
>> import numpy
>> print numpy.__version__
Dominic Rodger
Thank you for your help!
larus
@keijo - You might want to consider changing your accepted answer to SilentGhost's.
Dominic Rodger
This is the API we numpy developers will support. numpy.version.version is an implementation detail that should not be relied upon.
Robert Kern
+2  A: 
numpy.version.version
SilentGhost
+1 - That looks like a better way of doing it than mine.
Dominic Rodger
@Dominic Rodger: yeah, but your is more general to any module that cares to set a `__version__`.
voyager
A: 

from the command line, you can simply issue:

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

or

python -c "import numpy; print numpy.__version__"
meduz