I'm trying to install scikit-image on a server that I don't have admin privileges on. Scikit-image requires Cython >= 0.23 as a dependency, but the server has Cython 0.21 installed globally.
$ which Cython
/opt/apps/software/MPI/GCC/4.8.3/OpenMPI/1.8.8/Python/2.7.9/bin/cython
$ cython --version
Cython version 0.21.2
I can install Cython 0.25.2 locally into a .pip folder for my project (following the advice here):
$ pip install Cython -t .pip
$ python ./.pip/cython.py --version
Cython version 0.25.2
I've added ./.pip to the beginning of my PYTHONPATH, but when I try to install scikit-image I get
$ pip install --user scikit-image
...
RuntimeError: Cython >= 0.23 needed to build scikit-image
How can I tell the pip installation to use the version of Cython sitting in my_project/.pip?
pip install --user --upgrade Cython~/.local/binto my PATH. I can now runcython --versionand getCython 0.25.2, but the user install of scikit-image still isn't happy and is giving me the same versioning error.export PYTHONPATH=~/.local/lib/python2.7/site-packages:$PYTHONPATH, but the cluster specific Cython installation shows up first in Python'ssys.path. Anyway to make my site-packages show up at the top ofsys.path?python setup.py build_ext --inplace, you see the same error?