By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,330 Members | 1,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,330 IT Pros & Developers. It's quick & easy.

Understand what the ImportError error is

P: 1
I have recently received a Python program that I'm not able to compile. I read some tutorial but the error note doesn't make sense.
The program starts with
from Numeric import *
from FFT import *
from LinearAlgebra import *
from scipy import *
from CsvUtils import *
from math import log
from math import atan
from os.path import *
from string import *
from Scientific.Functions.Interpolation import *
from real import *

But when I try to compile it ( run module) the error says:
Traceback (most recent call last):
File "/Users/reemjaafar/Desktop/Python/InternalMagneticField2-DerivativeResult.py", line 1, in <module>
from Numeric import *
ImportError: No module named Numeric


So it is not recognizing the Numeric module, shouldn't that be already in the library of Phyton?
Aug 7 '07 #1
Share this Question
Share on Google+
2 Replies

ilikepython
Expert 100+
P: 844
I have recently received a Python program that I'm not able to compile. I read some tutorial but the error note doesn't make sense.
The program starts with
from Numeric import *
from FFT import *
from LinearAlgebra import *
from scipy import *
from CsvUtils import *
from math import log
from math import atan
from os.path import *
from string import *
from Scientific.Functions.Interpolation import *
from real import *

But when I try to compile it ( run module) the error says:
Traceback (most recent call last):
File "/Users/reemjaafar/Desktop/Python/InternalMagneticField2-DerivativeResult.py", line 1, in <module>
from Numeric import *
ImportError: No module named Numeric


So it is not recognizing the Numeric module, shouldn't that be already in the library of Phyton?
No, Numeric is not in the standard python libaray, you need to download it seperately. Try this link.
Aug 7 '07 #2

bartonc
Expert 5K+
P: 6,596
No, Numeric is not in the standard python libaray, you need to download it seperately. Try this link.
Great link! Numeric is out of date. I'm not sure if NumPy translates Numeric imports or if you change "import numeric" to
Expand|Select|Wrap|Line Numbers
  1. import numpy
.
Aug 7 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.