Skip to content

Instantly share code, notes, and snippets.

@dlzi
Last active February 5, 2024 19:56
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save dlzi/c2cb7e39835cb2da868de47394cd4e83 to your computer and use it in GitHub Desktop.
Save dlzi/c2cb7e39835cb2da868de47394cd4e83 to your computer and use it in GitHub Desktop.
How to uninstall Python 3.x on a macOS

1. DO NOT attempt to remove any Apple-supplied system Python which are in /System/Library and /usr/bin.
2. Multiple Python versions can coexist pacifically on macOS. So, uninstalling Python is purely optional.

To remove a different version, change 3.7 to the Python version you want to remove.

sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.7
sudo rm -rf "/Applications/Python 3.7"
sudo find /usr/local/bin -lname '../../../Library/Frameworks/Python.framework/Versions/3.7/*' -delete

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