Hi,
I'm trying to install Numpy for Python 3 and am hoping that someone here can give me a hand. I've downloaded the source, extracted it and run:
Code:
sudo python3 setup.py build
sudo python3 setup.py install
Now, when I run python3 and then import numpy from the interpreter, I get the error:
Code:
Python 3.1.2 (release31-maint, Sep 17 2010, 20:34:23)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "numpy/__init__.py", line 122, in <module>
from numpy.__config__ import show as show_config
ImportError: No module named __config__
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "numpy/__init__.py", line 127, in <module>
raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python intepreter from there.
I can't seem to make much sense of this. Thanks!
Bookmarks