How to fully uninstall pip installed with easy_install?
Asked Answered
S

4

9

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?

Sturgis answered 26/2, 2014 at 19:22 Comment(3)
what is your operating system?Ambrosine
Added to original post.Sturgis
Ironically, pip is intended to replace easy_install to a large extent to enable consistent package update and uninstall...Uredo
L
11

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.

Logrolling answered 26/2, 2014 at 21:13 Comment(3)
What files should I delete? Where would all the easy_install pip files be located? Is it really just the pip-1.5.4-py2.7.egg file referenced in it?Sturgis
Just the .egg file or folder.Logrolling
Actually I realized that if the package that was installed includes user scripts, like I believe pip does, then those would still be left behind by the above. In case of pip there is probably a file called pip in the same location where easy_install is. This doesn't really matter if you install another version of pip because the other version's install will overwrite the scripts anyway.Logrolling
B
8

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.

Blowup answered 31/8, 2018 at 2:40 Comment(0)
T
2

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
Tylertylosis answered 6/7, 2018 at 6:36 Comment(0)
E
-1

To Remove PIP in windows directly type this command

rmdir /s /q C:\Users\prans\AppData\Local\Programs\Python

Earthworm answered 15/11, 2023 at 12:49 Comment(1)
Does this remove pip, or Python?Sociolinguistics

© 2022 - 2024 — McMap. All rights reserved.