How can I get the Macport Python version to work with XCode? Which Python.framework do I have to choose?
Perhaps take a look here: < https://superuser.com/questions/35256/how-can-i-change-the-default-python-version-on-snow-leopard >. The final solution mentions using python_select. Assuming you install different versions of Python in a standard way, this will let you switch between them and then Xcode should respect the new default. If you're using ActivePython, it will be different... but in the case of ActivePython, if you export the PYTHONPATH where your ActivePython executable is located, Xcode should respect that as the default (at least is automatically did on my machine, running OS X 10.5 and ActivePython 2.7).