-
-
Save ctrngk/76ed717d851be6299e497c32040c32fa 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment