[Numpy-discussion] problems installing NumPy on OSX
erin.sheldon at gmail.com
Sun Dec 3 10:59:37 CST 2006
On 12/3/06, Arild B. Næss <arildna at stud.ntnu.no> wrote:
> Den 3. des. 2006 kl. 17.00 skrev Gael Varoquaux:
> 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.
> Hm, this doesn't work for you either? It says on this page that "import
> Numeric" is a normal test:
That document looks out of date. If you just install numpy
you won't be able to import Numeric
> You got my hopes up for a second there, but I can do neither:
> Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from numpy import *
> Running from numpy source directory.
> >>> a= array([[1,2,3],[4,5,6]])
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> NameError: name 'array' is not defined
You will get this error running from the numpy source
directory. cd to somewhere else.
More information about the Numpy-discussion