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

ImportError: No module named Numeric

P: 25
Hi,

If somebody knows about the following error then please guide me how can I rectify this error.

File "arabic_offline.py", line 3, in <module>
from Numeric import *
ImportError: No module named Numeric

Thanks in advance,
Jul 8 '11 #1

✓ answered by dwblas

There are two possibilities
1. The name is incorrect. Search for "netcdf" on the system, (make sure the search is not case specific), and see if you should be importing "NetCDF" or "netcdf" or "Netcdf", etc.

2. The library is not installed in /usr/lib/python. Once again a search is necessary to tell you where it is. You can move it, symlink it, or use sys.path.append to append it's directory so Python knows where to look.

Share this Question
Share on Google+
4 Replies


Oralloy
Expert 100+
P: 983
try

from math import *

I think you're going for the libraries, and not a special module you wrote, yes?

Luck!
Oralloy
Jul 8 '11 #2

P: 25
I have done it by

sudo apt-get install python-numeric

but now another error occurs which shows the error message as follows


from NetCDF import *
ImportError: No module named NetCDF

Although I have installed netcdf-4.6.1 but this error is still there. If you have an idea how to remove then please share it.
Jul 9 '11 #3

Expert 100+
P: 624
There are two possibilities
1. The name is incorrect. Search for "netcdf" on the system, (make sure the search is not case specific), and see if you should be importing "NetCDF" or "netcdf" or "Netcdf", etc.

2. The library is not installed in /usr/lib/python. Once again a search is necessary to tell you where it is. You can move it, symlink it, or use sys.path.append to append it's directory so Python knows where to look.
Jul 9 '11 #4

P: 25
Yes I have done it !
the second possibility dwblas mentioned is the case with my program. Actually the path of Netcdf was not recognizing

echo $PATH~ (to see the current path)
export PATH
PATH=$PATH:~/your/specified/path
Jul 9 '11 #5

Post your reply

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