Numpy not found

Glenn Hutchings zondo42 at googlemail.com
Sun May 4 21:20:10 EDT 2008


adolfo <aguirre.adolfo at gmail.com> writes:

> I downloaded and installed Phyton 2.52 (it works), numpy-1.0.4.win32-
> py2.5, and scipy-0.6.0.win32-py2.5
>
> I can´t get Numpy to show up at Python´s  IDLE, or command line. If I
> do:
>
>>>>> import Numeric
> # I get
>>>>> Traceback (most recent call last):
>   File "<pyshell#0>", line 1, in <module>
>     import Numeric
> ImportError: No module named Numeric

Try 'import numpy' instead.  Numeric is an earlier incarnation of numpy --
it has (mostly) the same interface, but is a different package.  (Just to
confuse things even further, there's also another old one, called
numarray).

> And if I do:
>>>>> import Numeric *
> # I get
> SyntaxError: invalid syntax

The proper syntax for that is (assuming you want numpy instead) 'from numpy
import *'.

Glenn



More information about the Python-list mailing list