I just upgraded to lion and with it came Python 2.7. I need to use 2.6 as my default python as the project I primarily work on uses 2.6.
After running the following:
defaults write com.apple.versioner.python Version 2.6
To make sure the packages you install with 'sudo' are installed for the correct Python version, also set the versioner option as a superuser:
sudo su
# Enter password
defaults write com.apple.versioner.python Version 2.6
exit