Skip to content
Advertisement

How to uninstall corrupt pip

I did a pip operation and got a suggestion from pip to upgrade:

You are using pip version 9.0.1, however version 9.0.3 is available.

You should consider upgrading via the ‘pip install –upgrade pip’ command.

Unfortunately I upgraded using sudo, even though I’m not convinced it is what actually caused my problems: sudo pip install --upgrade pip

Now whatever I try, pip complains about me not using pip 9.0.1:

JavaScript

I want to either downgrade or reinstall, but all suggestions I find suggest doing pip uninstall pip or similar and that is not really an option at this point.

Any suggestions?

Advertisement

Answer

Consider having a look at the permissions defined for /usr/local/lib/python2.7/pip. Probably this directory is not readable, and consequently, Python cannot find pip distribution.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement