How do I manually uninstall setuptools (installed by egg)?

rdmurray at rdmurray at
Wed Dec 10 04:15:51 CET 2008

On Tue, 9 Dec 2008 at 18:49, excord80 at wrote:
> On Ubuntu, I accidentally manually installed setuptools
> (by running the .egg file
> as a shell script via sudo), and now realize I should just be using
> apt to take care of my system Python packages. I also installed one or
> two packages using its ``easy_install``.
> Looks like it lives in ``/usr/lib/python2.5/site-packages``.
> How can I manually remove those packages installed using that
> ``easy_install``, and then manually remove the setuptools package I
> installed?

rm -r /usr/lib/python2.5/site-packages/<egg-directory>

Then find the .pth file (in the site-packages directory) that
references the egg, and delete the line referencing the egg.

Setuptools has no uninstall function, as far as I know.


More information about the Python-list mailing list