[Numpy-discussion] numPy not imported into Python
Chris Barker - NOAA Federal
chris.barker at noaa.gov
Thu May 2 12:38:45 EDT 2013
On Wed, May 1, 2013 at 6:52 PM, Mark Micklich <mmick003 at ucr.edu> wrote:
> Oh! I imported numpy and that worked. I probably should have mentioned
> I'm working through the 2005 "*Numerical Methods in Engineering with
> Python*" textbook from the school library. The examples are still good,
> but the Import statement used in the book is obsolete. Thanks for the
> quick reply.
> jsut so you know, there may be other subtle issues -- numpy has mostly the
same API as numarray, but not exactly, so if somethign doesn't appear to be
working as the book suggests, make sure to check out the current numpy docs.
Note that there seems to be a new addition of the book:
Numerical Methods in Engineering with Python 3
I assume it uses a recent numpy version. (too bad there isn't a py2, recent
numpy version, but there you go...)
> On Wed, May 1, 2013 at 6:47 PM, Christopher Hanley <chanley at gmail.com>wrote:
>> Numpy is not numarray. Numarray is an older package that has long since
>> been replaced by numpy. You should only use numpy in any development from
>> now on.
>> On Wednesday, May 1, 2013, Mark Micklich wrote:
>>> Hello -- After installing numPy, I'm getting the following error message
>>> when attempting to import numarray:
>>> ImportError: No module named numarray
>>> I do have numPy installed. I'm running under Lubuntu 12.10 and the Spyder
>>> 2.1.10 IDE. I'm fairly new to developing Python on Linux. I assume there
>>> is some path issue, but I'm not clear where to start. If numPy is
>>> installed, how to I point Spyder to the numPy modules so I can get numarray
>>> to work?
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
Christopher Barker, Ph.D.
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion