Skip to content

Instantly share code, notes, and snippets.

@ctrngk
Forked from myusuf3/uninstall.sh
Created March 31, 2017 08:55
Show Gist options
  • Save ctrngk/76ed717d851be6299e497c32040c32fa to your computer and use it in GitHub Desktop.
Save ctrngk/76ed717d851be6299e497c32040c32fa 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