How do I remove packages installed with Python's easy_install?
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Thinking It Over
--
Chapters
00:00 Question
00:51 Accepted answer (Score 622)
01:20 Answer 2 (Score 193)
01:39 Answer 3 (Score 162)
02:02 Answer 4 (Score 55)
02:49 Thank you
--
Full question
https://stackoverflow.com/questions/1231...
Accepted answer links:
[pip]: http://pypi.python.org/pypi/pip/
[installation instructions]: http://pip.readthedocs.org/en/stable/ins.../
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #package #setuptools #easyinstall
#avk47
ACCEPTED ANSWER
Score 623
pip, an alternative to setuptools/easy_install, provides an "uninstall" command.
Install pip according to the installation instructions:
$ wget https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py
Then you can use pip uninstall to remove packages installed with easy_install
ANSWER 2
Score 194
To uninstall an .egg you need to rm -rf the egg (it might be a directory) and remove the matching line from site-packages/easy-install.pth
ANSWER 3
Score 163
First you have to run this command:
$ easy_install -m [PACKAGE]
It removes all dependencies of the package.
Then remove egg file of that package:
$ sudo rm -rf /usr/local/lib/python2.X/site-packages/[PACKAGE].egg
ANSWER 4
Score 28
There are several sources on the net suggesting a hack by reinstalling the package with the -m option and then just removing the .egg file in lib/ and the binaries in bin/. Also, discussion about this setuptools issue can be found on the python bug tracker as setuptools issue 21.
Edit: Added the link to the python bugtracker.