[Numpy-discussion] problems installing NumPy on OSX
Arild B. Næss
arildna at stud.ntnu.no
Sun Dec 3 10:36:04 CST 2006
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:
http://numpy.scipy.org/numpydoc/numpy-3.html
>
>>>> 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]])
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
>>> import numpy
>>> a = numpy.array([[1,2],[3,4]])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'array'
regards,
Arild Næss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20061203/9b96952a/attachment.html
More information about the Numpy-discussion
mailing list