This only uninstalls custom Python installation. Uninstalling the default Pythonthat comes with OSX is not a good idea.1) Delete Python files sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7sudo rm -rf /Applications/Python 2.72) Remove symbolic links in /usr/local/bin ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | xargs rm
3) Edit your shell profile file(s) and delete that line that adds
/Library/Frameworks/Python.framework/Versions/2.7 to your PATH environment file. This could either ofthese files, depending on the shell you are using:
~/.bash_login~/.bash_profile~/.cshrc~/.profile ~/.tcshrc~/.zprofile