How to uninstall Python 2.7 on a Mac OS X 10.6.4?
To uninstall Python 2.7 on a Mac OS X 10.6.4, you can use the following commands in the terminal:
sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
sudo rm /usr/bin/python
sudo rm /usr/bin/pythonw
sudo rm /usr/bin/python-config
Watch a video course
Python - The Practical Guide
Please note that these commands will remove Python 2.7 and all associated files, so make sure you have a backup or another version of Python installed before proceeding. Also, You should also check if python2 is installed via brew or other package manager and remove it accordingly.