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

Paul D. Waite picture Paul D. Waite · Dec 5, 2010 · Viewed 40.6k times · Source

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.

Answer

Paul D. Waite picture Paul D. Waite · Dec 5, 2010

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).