I am trying to install the scikits.nufft package here. I am downloading the zip file, unpacking and cd into the directory. It contains the setup.py file, so I run
python setup.py install
but it gives me the following error related to my PYTHONPATH
sudo python setup.py install sudo: unable to resolve host Lenovo /usr/local/lib/python2.7/dist-packages/distribute-0.6.31-py2.7.egg/setuptools/command/install_scripts.py:3: UserWarning: Module dap was already imported from None, but /usr/lib/python2.7/dist-packages is being added to sys.path from pkg_resources import Distribution, PathMetadata, ensure_directory running install Checking .pth file support in /usr/local/lib/python2.7/site-packages/ /usr/bin/python -E -c pass TEST FAILED: /usr/local/lib/python2.7/site-packages/ does NOT support .pth files error: bad install directory or PYTHONPATH You are attempting to install a package to a directory that is not on PYTHONPATH and which Python does not read ".pth" files from. The installation directory you specified (via
It seems like the path is empty, but when I check my path I get
echo $PYTHONPATH /usr/local/lib/python2.7/site-packages:/home/david/PYTHON
Does anyone know why this might seem empty? or any other ideas as to what might be wrong here. Thanks, Dave
source share