Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fully uninstall pip installed with easy_install?

On Windows 7, I install pip with easy_install and want to install a lower version of pip. I want to remove the old version, but have no idea how to completely remove the pip installed by easy_install (or if there is a way to do it without going through easy_install, that is fine). How do I do this?

like image 269
Rolando Avatar asked Feb 26 '14 19:02

Rolando


3 Answers

There is no completely automatic uninstall but you can do it in two steps:

easy_install -m pip

This should remove pip from easy-install.pth and print the full path to where pip is installed. Now just manually remove the path that the previous command printed. Or you could just manually edit easy-install.pth and remove the pip sources if you know where they are located.

like image 122
Heikki Toivonen Avatar answered Sep 27 '22 18:09

Heikki Toivonen


I found that the following command worked.

It deleted the installed files and the .egg directory. It also provided a confirmation prompt.

pip uninstall pip

From this answer.

like image 37
TT-- Avatar answered Sep 27 '22 17:09

TT--


To uninstall pip in windows:

  • 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
  • Now check by giving command pip --version This should give pip is not recognized as an internal or external command
like image 21
Sravya Yellapragada Avatar answered Sep 27 '22 18:09

Sravya Yellapragada