numPy not imported into Python
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? Thanks, Mark
Mark, 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. Chris 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?
Thanks, Mark
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. Mark On Wed, May 1, 2013 at 6:47 PM, Christopher Hanley <chanley@gmail.com>wrote:
Mark,
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.
Chris
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?
Thanks, Mark
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Wed, May 1, 2013 at 6:52 PM, Mark Micklich <mmick003@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...) -Chris
Mark
On Wed, May 1, 2013 at 6:47 PM, Christopher Hanley <chanley@gmail.com>wrote:
Mark,
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.
Chris
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?
Thanks, Mark
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
-- Christopher Barker, Ph.D. Oceanographer 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@noaa.gov
participants (3)
-
Chris Barker - NOAA Federal
-
Christopher Hanley
-
Mark Micklich