[Numpy-discussion] problems installing NumPy on OSX

Gael Varoquaux gael.varoquaux at normalesup.org
Sun Dec 3 10:00:16 CST 2006


On Sun, Dec 03, 2006 at 04:56:49PM +0100, Arild B. Næss wrote:
> This gets me further, actually the installation seems to complete.  
> However, when I type
>  >> import Numeric
> in Python, I get the usual ImportError: No module named Numeric.

Thats normal, you installed numpy.

>  >> import numpy
> works, but
>  >>> a= array([[1,2,3],[4,5,6]])
> tells me array is not defined.

Hum, you can do either:

from numpy import *
a= array([[1,2,3],[4,5,6]])

or 

import numpy
a= numpy.array([[1,2,3],[4,5,6]])


Gaël


More information about the Numpy-discussion mailing list