Wednesday, May 22, 2013

Setting up Python/Pylab environment on machine with no root access

No pip? Bootstrapping ourselves
cd /tmp (We have write access here)
curl -O https://pypi.python.org/packages/source/p/pip/pip-1.3.tar.gz
tar -xzf pip-1.3.tar.gz
cd pip-1.3/
python setup.py install --user
Python informs us pip is now installed under
~/.local/
cd back to our directory. Add this path to .bash_profile
PATH=$PATH:$HOME/.local/bin
Let's try this out:
pip install matplotlib --user
pip install ipython --user
pip install --upgrade nose --user (The server had an older version of nose)

No comments:

Post a Comment