LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How can I uninstall a python package installed with python setup.py install? (https://www.linuxquestions.org/questions/linux-software-2/how-can-i-uninstall-a-python-package-installed-with-python-setup-py-install-767570/)

milomak 11-07-2009 03:54 PM

How can I uninstall a python package installed with python setup.py install?
 
Is there a formal documented way?

I have found a method of doing it, but I find it difficult to believe the ability to uninstall is not formally supported.

http://kmandla.wordpress.com/2009/01...ppy-uninstall/

Essentially:

When you install - python setup.py install --record files.txt
when you uninstall - cat files.txt | xargs rm -rf

This will, however, require the user to look through files.txt like a hawk. It is really not an ideal situation I would think.

stevenworr 11-16-2009 09:22 PM

You are correct that distutils does not support uninstall. If you have a choice, you should use rpms (or deb) which do.


All times are GMT -5. The time now is 06:39 AM.