Sunday, 8 September 2013

Installing virtualenv on Linux Mint 14

Installing virtualenv on Linux Mint 14

I'm currently running Linux Mint 14, and trying to install
virtualenv/virtualenvwrapper via pip. I've done the following:
sudo apt-get install python-setuptools
sudo easy_install pip
sudo pip install virtualenvwrapper
This works fine, and no errors come back. However after adding the
following lines to my .profile:
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
Reloading via source ~/.profile throws the following error:
IOError: [Errno 13] Permission denied:
'/usr/local/lib/python2.7/dist-packages/oauth2client-1.1-py2.7.egg/EGG-INFO/top_level.txt'
virtualenvwrapper.sh: There was a problem running the initialization
hooks.
If Python could not import the module virtualenvwrapper.hook_loader, check
that virtualenv has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.
I've also tried the same exports in .bashrc with the same result. Having a
hunt round of some similar SO questions and Google I haven't been able to
find anything that will fix this problem - is my Python install broken?

No comments:

Post a Comment