[Numpy-discussion] "ImportError: No module named numeric"

Stefan van der Walt stefan at sun.ac.za
Wed Jul 12 07:03:43 EDT 2006


Hi Tamaryn

On Wed, Jul 12, 2006 at 11:57:48AM +0100, Tamaryn Menneer wrote:
> Hi 
> 
> I'm running Python 2.4 on Windows XP. I've installed NumPy, and run the
> simple test of "import numeric" but I get the error "ImportError: No module
> named numeric" in return. The module numeric is located in
> C:\Python24\Lib\site-packages\numpy\core, but even when I set PYTHONPATH to
> this it returns the same error. Imports of modules in the Lib directory work
> fine, but everything I've tried within site-packages results the no module
> error.

Set your PYTHONPATH to c:\Python24\Lib\site-packages

and then try

from numpy import oldnumeric as numeric

> Any guidance would be very much appreciated. I'm virtually a complete newbie
> to all this, but I'll try my best to understand any responses! 

If you are just starting out with numpy, you shouldn't need to import
the numeric module at all.  Take a look at the documentation on

http://www.scipy.org/Documentation

Good luck!
Stéfan




More information about the NumPy-Discussion mailing list