installing numpy

cesco fd.calabrese at gmail.com
Wed Mar 15 10:59:24 CET 2006


Hi,

I'm trying to install the numpy library (precisely
numpy-0.9.6-py2.4-linux-i686) on Linux but I encounter several
problems.
After unpacking the file it creates the following folders:
usr/lib/python2.4/site-packages/numpy/
The file setup.py and the whole library is located under the folder
numpy.
If, from the location where I unpacked the file, I run the command
python usr/lib/python2.4/site-packages/numpy/setup.py install
I receive the following error:
Traceback (most recent call last):
  File "usr/lib/python2.4/site-packages/numpy/setup.py", line 24, in ?
    sys.path.remove(os.getcwd())
ValueError: list.remove(x): x not in list
If, instead, I do
cd usr/lib/python2.4/site-packages/numpy/
and then
python setup.py install
I receive the following error
Traceback (most recent call last):
  File "setup.py", line 26, in ?
    from numpy.distutils.core import setup
ImportError: No module named numpy.distutils.core
Finally I tried to move the folder numpy to the location where all the
third-party modules are installed, that in my case is
/usr/lib/python2.4/site-packages/ and run the command from there like:
python numpy/setup.py install
but, once again, I receive the error:
Traceback (most recent call last):
  File "numpy/setup.py", line 26, in ?
    from numpy.distutils.core import setup
ImportError: No module named numpy.distutils.core

Does anyone know how this module should be installed?

Thanks and regards
Cesco




More information about the Python-list mailing list