Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall pip on OSX?

Tags:

python

macos

pip

I ran the following commands:

easy_install pip sudo pip install setuptools --no-use-wheel --upgrade 

How do I reverse the two commands to get my python back to its original state in OSX? (removing pip as part of it)

like image 269
Setsuna Avatar asked Jan 09 '14 05:01

Setsuna


People also ask

How do I uninstall pip and install again?

Run command prompt as administrator. Give the command easy_install -m pip. This may not uninstall pip completely. So again give this command pip uninstall pip If by previous command pip got uninstalled then this command wont run, else it will completely remove pip.


2 Answers

The first thing you should try is:

sudo pip uninstall pip 

On many environments that doesn't work. So given the lack of info on that problem, I ended up removing pip manually from /usr/local/bin.

like image 79
nacho_dh Avatar answered Oct 02 '22 16:10

nacho_dh


In my case I ran the following command and it worked (not that I was expecting it to):

sudo pip uninstall pip 

Which resulted in:

Uninstalling pip-6.1.1:   /Library/Python/2.7/site-packages/pip-6.1.1.dist-info/DESCRIPTION.rst   /Library/Python/2.7/site-packages/pip-6.1.1.dist-info/METADATA   /Library/Python/2.7/site-packages/pip-6.1.1.dist-info/RECORD   <and all the other stuff>   ...    /usr/local/bin/pip   /usr/local/bin/pip2   /usr/local/bin/pip2.7 Proceed (y/n)? y   Successfully uninstalled pip-6.1.1 
like image 37
srk Avatar answered Oct 02 '22 16:10

srk