MacOS – What version(s) of Python are pre-installed on OS X 10.9 Mavericks
macospython
In the past Python 2.6 was included with OS X 10.8.
What version or versions come with 10.9 Mavericks?
Best Answer
It's on 2.7.5.
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Install of python modules goes in x/Library/FrameworksPython.framework/Versions/2.6 etc where x depends on the install.
nothing for the one from Apple as port of OSX. python executable in /usr/bin
nothing for pythons from python.org. python executable in /usr/local/bin
/opt/local if installed via macports (as I do)
You have to look at easy_install etc to see the path to the python they use. e.g. /usr/bin/easy_install has /usr/bin/python so using this will install in /Library/FrameworksPython.framework/Versions/2.6.
You cannot choose to run under a minor version of python e.g. 2.7.2 as only one major version at a time is set up normally e.g. 2.7.2 replaced 2.7.1
Each major version of python will have its own executable e.g. python2.7 s to have a script use that verstio make it begin with #!/usr/bin/env python2.7 pr the full path.
Best Answer
It's on 2.7.5.