How to uninstall the version Python 2.7 on a Mac OS X 10.6.4?
You can use the below-mentioned command:-
cd /usr/local/bin/
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | tr -d @ | xargs rm