22

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

2

2 Answers 2

28

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.

1
5

You should always install Python apps with "pip". pip supports uninstall option.

2
  • 2
    Can you use pip to install a local package if you know where the source and setup.py files are? I assumed the maintainer would have had to put the files someplace.
    – PKKid
    May 18, 2012 at 0:02
  • 1
    @PKKid pip install http://example.com/path/to/zipball works. For a local path use pip install ~/projects/foo/. Oct 24, 2014 at 16:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .