python 2.7

This commit is contained in:
Kenneth Reitz
2012-01-23 15:35:37 -05:00
parent 2a5ad4b9ab
commit 28e30f487a
+4 -8
View File
@@ -3,9 +3,7 @@
Installing Python on Mac OS X
=============================
*Or, "Installing Python 2.7 via Homebrew".*
The latest version of Mac OS X, **comes with Python 2.7 out of the box**.
The latest version of Mac OS X, Lion, **comes with Python 2.7 out of the box**.
You do not need to install or configure anything else to use Python. Having said that, I would strongly recommend that you install the tools and libraries described in the next section before you start building Python applications for real-world use. In particular, you should always install Distribute, as it makes it much easier for you to use other third-party Python libraries.
@@ -14,14 +12,12 @@ The version of Python that ships with OS X is great for learning, but it's not g
Doing it Right
--------------
Let's get a real version of Python.
While Lion comes with a large number of UNIX utilities, those
familiar with Linux systems will notice one key component missing: a decent
package manager. `Homebrew <http://mxcl.github.com/homebrew/>`_ fills this void.
Let's install a real version of Python.
First, you'll need to have GCC installed to compile Python. You can either get this from `XCode <http://developer.apple.com/xcode/>`_ or the smaller `OSX-GCC-Installer <https://github.com/kennethreitz/osx-gcc-installer#readme>`_ package.
While Lion comes with a large number of UNIX utilities, those familiar with Linux systems will notice one key component missing: a decent package manager. `Homebrew <http://mxcl.github.com/homebrew/>`_ fills this void.
To `install Homebrew <https://github.com/mxcl/homebrew/wiki/installation>`_, simply run::
$ ruby -e "$(curl -fsS https://raw.github.com/gist/323731)"