Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
remove python 2.7 on mac osx if installed via installer .dmg
# sudo rm -rf /Library/Frameworks/Python.framework
sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
sudo rm -rf "/Applications/Python 2.7"
cd /usr/local/bin && \
sudo ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | xargs rm
Copy link

Thanks man, it helps.

Copy link

AskFeeds commented May 9, 2019

Thanks for this Ninja trick. Just got it done.

It seems has added uninstall directions to the documentation:

I also found it's better to remove the following python leftover files, such as:
~/Library/Application Support/
~/Library/Application Support/
Some helpful tips here: Uninstall Python Mac

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