I recently installed MacPython 2.4 while trying to get Plone installed using buildout rather than a binary build from plone.org. After I gave up and decided to use a binary build, I wanted to remove MacPython as the binary build comes with its own version of Python 2.4.
You need to uninstall MacPython manually, as there is no automated uninstaller. The documentation at python.org on removing MacPython and reverting to OS X’s default Python installation isn’t quite complete. I needed to follow a couple of extra steps, the final two below.
Here are the steps I needed to complete to fully revert to the system python:
MacPython 2.4 folder from your Applications folder.sudo rm -rf /Library/Frameworks/Python.framework. Do not remove /System/Library/Frameworks/Python.framework as this is the system version!/usr/local/bin/python~/.bash_profile.pysave created by the MacPython installer.
.bash_profile from the backup: rm ~/.bash_profile then mv ~/.bash_profile.pysave ~/.bash_profile.~/.bash_profile to remove the path starting /Library/Frameworks/Python.frameworkYou should now be able to start the default Python installed with OS X:
$ python Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
Voila!