How do I remove packages installed with Python's easy_install?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Ominous Technology Looping
--
Chapters
00:00 How Do I Remove Packages Installed With Python'S Easy_install?
00:38 Accepted Answer Score 623
00:59 Answer 2 Score 194
01:14 Answer 3 Score 163
01:30 Answer 4 Score 55
02:05 Answer 5 Score 28
02:26 Thank you
--
Full question
https://stackoverflow.com/questions/1231...
--
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.