Skip to content

Instantly share code, notes, and snippets.

@alchem0x2A
Forked from myusuf3/uninstall.sh
Created July 5, 2018 13:00
Show Gist options
  • Save alchem0x2A/4e31d83091a9d9543c0cfd297a1ded07 to your computer and use it in GitHub Desktop.
Save alchem0x2A/4e31d83091a9d9543c0cfd297a1ded07 to your computer and use it in GitHub Desktop.
how to cleanly uninstall python packages installed with python setup.py
# 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