Skip to content

Instantly share code, notes, and snippets.

Created April 21, 2011 03:06
  • Star 49 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
how to cleanly uninstall python packages installed with python
# Next time you need to install something with python -- which should be never but things happen.
python 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
Copy link

Pip can usually uninstall a package that was installed with sudo pip uninstall the-package-name

Copy link

But pip is not removing the scripts installed

Copy link

Thanks a lot. I have successfully executed the script as admin.

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?

Copy link


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