Created
April 21, 2011 03:06
-
-
Save myusuf3/933625 to your computer and use it in GitHub Desktop.
how to cleanly uninstall python packages installed with python setup.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Next time you need to install something with python setup.py -- which should be never but things happen. | |
python setup.py install --record files.txt | |
# This will cause all the installed files to be printed to that directory. | |
# Then when you want to uninstall it simply run; be careful with the 'sudo' | |
cat files.txt | xargs sudo rm -rf | |
But pip is not removing the scripts installed
Thanks a lot. I have successfully executed the uninstall.sh script as admin.
I tried to manually delete all the files in the dlib module, but the Tools folder remains. Any idea how to remove the module permanently?
Thanks!
Thanks, Luke!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pip can usually uninstall a package that was installed with setup.py:
sudo pip uninstall the-package-name