I recently had to switch my machine at work. On the new machine, pip is not anymore.
$ pip --version
...
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/virtualenv-15.0.1.dist-info'
I imagine that this issue is caused by virtualenv, as I never encountered any problems on my old machine and the only difference I find, is that there was no virtualenv package installed on the old machine.
However
$ python -c "import pip; print pip.__version__"
10.0.1
still works.
I would be grateful if anyone could provide help, how to fix this problem or trace down the real problem.
Please note: I do not have root rights.
1 Answer 1
Here the problem is you don't have permission to the system folder. So whenever you use pip try to use it like this.
python -m pip install --user package
Here the package means the package you need to install using pip. Furthermore try using the following command to upgrade the version of your pip.
python -m pip install --user --upgrade pip
virtualenvpackage wouldn't breakpip. Do you mean pip works when you have no virtual environments active but breaks in the virtual environment you are using?/usr/local/lib/python2.7/dist-packages/virtualenv-15.0.1.dist-info.