[Numpy-discussion] Problems with numpy

Pauli Virtanen pav at iki.fi
Thu Feb 24 11:47:14 EST 2011


Thu, 24 Feb 2011 10:40:17 -0600, Benjamin Root wrote:
[clip]
>>  >>> import numpy
>> Traceback (most recent call last):
>>    File "<stdin>", line 1, in <module>
>>    File "/usr/local/lib64/python2.6/site-packages/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.
[clip]
> Are there any directories called "numpy" in /home/idris/cos/scos190? 
> Could you try cd-ing over to another directory and trying again?

Another possible reason is that Numpy was installed wrong (as the 
numpy.__config__ module is apparently missing). Numpy needs to be 
installed via "python setup.py install", manually copying the "numpy" 
directory is not enough.

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list