How to remove packages - wxPython

Peter Hansen peter at engcorp.com
Sat Dec 11 15:32:51 EST 2004


Peter wrote:
> Linux kernel 2.6.9
> Slackware 10
> Python version 2.3.4
> wxPython version 2.4.2.4
> 
> I compiled and installed wxPython.
> 
> There is no uninstall script that I can find for the py components. The
> library component has a make uninstall.
> 
> What is the proper way to uninstall packages? I searched everywhere, but
> there seems to be no clearcut explanation.
> 
> Can I just remove the site-package directories it created? Or is there a
> central config file for python?

Generally speaking, just removing the subfolder(s) from site-packages
will completely remove an extension.  Some few extensions will also
create a .pth file in the site-packages folder, so check for that
as well.  No doubt there are exceptions, but I believe this will
cover 95% of the cases.

-Peter



More information about the Python-list mailing list