469,337 Members | 6,001 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,337 developers. It's quick & easy.

ImportError: No module named Numeric

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.

4 6872
Oralloy
983 Expert 512MB
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
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
dwblas
626 Expert 512MB
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
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.

Similar topics

reply views Thread by Carsten Gehling | last post: by
reply views Thread by M. Lavasani | last post: by
1 post views Thread by fanbanlo | last post: by
reply views Thread by Robert Dailey | last post: by
2 posts views Thread by Juha S. | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.