Skip to content

Instantly share code, notes, and snippets.

@myusuf3
Created April 21, 2011 03:06
Show Gist options
  • Star 49 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save myusuf3/933625 to your computer and use it in GitHub Desktop.
Save myusuf3/933625 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
@Aditi1Singh
Copy link

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?

@edisonex
Copy link

Thanks!

@DJ004
Copy link

DJ004 commented Mar 18, 2021

Thanks, Luke!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment