How do I uninstall a Python module (“egg”) that I installed with easy_install?

Question:

I’ve installed a couple of Python modules using easy_install. How do I uninstall them?

I couldn’t see an uninstall option listed in easy_install --help.

Asked By: Paul D. Waite

||

Answers:

Ah, here we go:

$ easy_install -m PackageName

$ rm EggFile

I’m not exactly clear what the -m option does, but this method seems to work for me (i.e. after doing it, I can no longer import the modules in my Python interpreter).

Answered By: Paul D. Waite

easy_install did work for me.

I also was able to test that easy_install -m short name worked. For example:

easy_install -m mesos # ( short for mesos-0.16.0-py2.6-linux-x86_64.egg)

pip uninstall mesos also ending up working with short name.

Answered By: bma398
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.