[Tutor] numpy import failure

Andre' Walker-Loud walksloud at gmail.com
Mon Feb 28 03:58:46 CET 2011


Hi Ezra,

Are you using Mac OSX or LINUX or ...

If you have a preexisting python installation, it may be that when you launch python, it loads the older version, and not the new EPD version.  When you launch python, what do you see?  For example, on my Mac OSX, launched from Terminal, I get

% python
Enthought Python Distribution -- http://www.enthought.com
Version: 6.2-2 (32-bit)

Python 2.6.5 |EPD 6.2-2 (32-bit)| (r265:79063, May 28 2010, 15:13:03) 
[GCC 4.0.1 (Apple Inc. build 5488)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 


whereas, if I use an older version, I get

% python
Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 


You need to get the equivalent of the first option.  If you are definitely launching the Enthought python (from your new installation) and getting this error, then there is a problem with the package build on your machine.


Andre




On Feb 26, 2011, at 8:45 PM, Ezra Kahn wrote:

> I am a total newb, learning to ween myself off of Matlab.  I am working off of EPD6.1, and I cannot get numpy to import.  Python keeps sending me back this:
> 
> Traceback (most recent call last):
>  File "<pyshell#0>", line 1, in <module>
>    import numpy
> ImportError: No module named numpy
> 
> How do I trouble shoot this?
> 
> Thanks
> 
> Ezra
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list