Python Uninstall – How to Remove Applications Installed Through ‘python setup.py install’

pythonuninstall

I have two applications that I attempted to install, but they didn't work and now I can't get rid of them. They were both installed through sudo python setup.py install so there aren't any actual package files that I can remove from Synaptic/Software center. Niether of the README files say anything about uninstalling and trying sudo python setup.py uninstall (as someone suggested) didn't work. Is there another way to get rid of these applications?

Using 11.04, if that helps

Best Answer

Martin v. Löwis answered this here:

"You need to remove all files manually, and also undo any other stuff that installation did manually.

If you don't know the list of all files, you can reinstall it with the --record option, and take a look at the list this produces."

examples:

python setup.py install --record files.txt to generate the list

cat files.txt | xargs rm -rf to remove the files recorded by the previous step.