Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python version shipping with Mac OS X Snow Leopard?

I would appreciate it if somebody running the final version of Snow Leopard could post what version of Python is included with the OS (on a Terminal, just type "python --version")

Thanks!

like image 428
Julio Gorgé Avatar asked Aug 28 '09 14:08

Julio Gorgé


People also ask

Does macOS ship with python?

Apple says that developers should use an alternative scripting language going forward, such as Python 3, but it's worth noting that Python 3 also does not come preinstalled on macOS. Developers can run the stub /usr/bin/python3 in Terminal, but it prompts users to install Xcode developer tools, which includes Python 3.

Which version of Mac is called Snow Leopard?

Mac OS X Snow Leopard (version 10.6) is the seventh major release of macOS, Apple's desktop and server operating system for Macintosh computers.

What version of python does macOS come with?

5.1. Getting and Installing MacPython. macOS used to come with Python 2.7 pre-installed between versions 10.8 and 12.3. You are invited to install the most recent version of Python 3 from the Python website (https://www.python.org).


4 Answers

It ships with both python 2.6.1 and 2.5.4.

$ python2.5

Python 2.5.4 (r254:67916, Jul 7 2009, 23:51:24)

$ python

Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)

like image 157
ACoolie Avatar answered Oct 19 '22 15:10

ACoolie


bot:nasuni jesse$ 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.
>>> 

Probably the biggest reason I went and upgraded this morning, it's not 2.6.2, but it's close enough.

like image 27
jnoller Avatar answered Oct 19 '22 13:10

jnoller


http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/python.1.html

like image 34
christianbrodbeck Avatar answered Oct 19 '22 15:10

christianbrodbeck


Python 2.6.1

(according to the web)

Really good to know :)

like image 35
aehlke Avatar answered Oct 19 '22 13:10

aehlke