[Numpy-discussion] numpy installed but can' use

Eric Firing efiring@hawaii....
Fri Dec 28 10:59:54 CST 2007


dikshie wrote:
> Hi,
> successfully installed numpy but i cant use it (numpy is not defined).
> for example:
> 
> 
> Python 2.5.1 (r251:54863, Nov 25 2007, 02:18:29)
> [GCC 4.2.1 20070719  [FreeBSD]] on freebsd7
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from numpy import *
>>>> numpy.__version__
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'numpy' is not defined
> 
> any hints ?
> 
> regards,

You did not import numpy, you imported all of its contents.  Try:

import numpy
numpy.__version__

Eric



More information about the Numpy-discussion mailing list