Skip to content

Instantly share code, notes, and snippets.

@vonvanzu
Forked from dlzi/remove-python-macos.md
Created January 5, 2024 21:53
Show Gist options
  • Save vonvanzu/9bcd959a0ead144d10de4581cfce5c90 to your computer and use it in GitHub Desktop.
Save vonvanzu/9bcd959a0ead144d10de4581cfce5c90 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