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.4folder from your Applications folder.
sudo rm -rf /Library/Frameworks/Python.framework. Do not remove
/System/Library/Frameworks/Python.frameworkas this is the system version!
~/.bash_profile.pysavecreated by the MacPython installer.
.bash_profilefrom the backup:
mv ~/.bash_profile.pysave ~/.bash_profile.
~/.bash_profileto remove the path starting
You 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. >>>