Skip to content

Instantly share code, notes, and snippets.

@tianqig
Forked from myusuf3/uninstall.sh
Created November 25, 2017 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tianqig/c962f934a14d60dd4829f083fa0eb560 to your computer and use it in GitHub Desktop.
Save tianqig/c962f934a14d60dd4829f083fa0eb560 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