How to uninstall packages

Rustom Mody rustompmody at gmail.com
Sun Jul 1 00:25:04 EDT 2007


Recently I had trouble with the sqlite package under my debian etch
box as follows:

I first installed the debian package python-pysqlite1.1 using
synaptic. Since this seemed too old for other packages (sqlalchemy) I
downloaded the sources  pysqlite-2.3.4.tar.gz and ran setup install.

This gave the problem that _sqlite was not found.

And now the apt system started complaining that it could not uninstall
it because of some new files.

I finally (seem to have :-) ) got it to work by going into
/usr/lib/python2.4/site-packages/ and deleting the pysqlite directory
and reinstalling using apt.

However this is an unsatisfactory solution because I do not know what
else I should delete

So now my question:  How does one uninstall  *cleanly*

1> a package installed using setup.py install
2> a package installed with easy_install

Thanks



More information about the Python-list mailing list