When I type which python, I get the following result:
/Library/Frameworks/Python.framework/Versions/Current/bin/python
when I type “type -a python”:
python is /Library/Frameworks/Python.framework/Versions/Current/bin/python
python is /Library/Frameworks/Python.framework/Versions/2.6/bin/python
python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python
python is /Library/Frameworks/Python.framework/Versions/Current/bin/python
python is /usr/bin/python
python is /usr/local/bin/python
I want to use python 2.5, which I have installed!
But at this point, I’m a bit confused, and I don’t know how to set that as default, or what path I should be using.
Please note, I am developing SPECIFICALLY for Google App Engine, so please keep that in mind.
Thanks in advance.
If you install Python 2.5 from python.org (specifically this dmg file), it can make a link for you into
/usr/local/bin/python. Once you do that, and ensure/usr/local/binis in your$PATHenvironment variable, then/usr/local/bin/pythonshould be exactly what you want. To verify, try at a Terminal.app shell prompt…:this should confirm that 2.5.4 is the default Python. Also:
(since
/usr/bin/envis what app engine is specifically using) should confirm the same result.As an aside, it’s very correct on your part to want to ensure you’re using Python 2.5 for app engine purposes — using 2.6 or 2.7 would give some occasional strange results, and, worse, would accept some code (using post-2.5 features) that then would not run on Google’s app engine servers (which are using 2.5).