[Numpy-discussion] install problems

Warren Weckesser warren.weckesser@enthought....
Sat Apr 3 11:04:46 CDT 2010


Antoine Pairet wrote:
> Hi all!
>
> I am trying to install numpy on a computer which runs Linux and on which
> I have no root access. The only possibility is therefore to compile
> numpy from source. With the following command, the compilation seems to
> work fine:
>
> python setup.py install --prefix=/home/pcpm/pairet/pythonModules/numpy
>
> However, every time I try to use numpy in a python script I have the
> following error:
>      from numpy import *
> ImportError: No module named numpy
>
> I did add the following line to my .bashrc file:
> export PYTHONPATH=
> $PYTHONPATH:/home/pcpm/pairet/pythonModules/numpy/lib64/python2.4/site-packages/numpy
>
>   

Don't include that last "numpy" in the path.  E.g.

export PYTHONPATH=$PYTHONPATH:/home/pcpm/pairet/pythonModules/numpy/lib64/python2.4/site-packages


> I am a bit puzzled with the fact that there is no file called numpy.py. 
>
>   

numpy is installed as a "package": a directory that contains the file 
__init__.py along with all its other files.

See http://docs.python.org/tutorial/modules.html#packages


Warren

> What should I do to get numpy working on this machine?
> Any help is appreciated,
> Thanks in adavance,
>
> Antoine
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>   



More information about the NumPy-Discussion mailing list