3
3
Installing Python on Mac OS X
4
4
=============================
5
5
6
- The latest version of Mac OS X, Lion, **comes with Python 2.7 out of the box **.
6
+ The latest version of Mac OS X, Mountain Lion, **comes with Python 2.7 out of the box **.
7
7
8
8
You do not need to install or configure anything else to use Python. Having
9
9
said that, I would strongly recommend that you install the tools and libraries
@@ -20,9 +20,11 @@ Doing it Right
20
20
21
21
Let's install a real version of Python.
22
22
23
- First, you'll need to have GCC installed to compile Python. You can either get
24
- this from `XCode <http://developer.apple.com/xcode/ >`_ or the smaller
25
- `OSX-GCC-Installer <https://github.com/kennethreitz/osx-gcc-installer#readme >`_ package.
23
+ Before installing Python, you'll need to install GCC. GCC can be obtained
24
+ by downloading `XCode <http://developer.apple.com/xcode/ >`_, the smaller
25
+ `Command Line Tools <https://developer.apple.com/downloads/ >`_ (must have an
26
+ Apple account) or the even smaller `OSX-GCC-Installer <https://github.com/kennethreitz/osx-gcc-installer#readme >`_
27
+ package.
26
28
27
29
While Lion comes with a large number of UNIX utilities, those familiar with
28
30
Linux systems will notice one key component missing: a decent package manager.
@@ -33,11 +35,13 @@ simply run
33
35
34
36
.. code-block :: console
35
37
36
- $ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
38
+ $ ruby -e "$(curl -fsSL https:// raw.github.com/mxcl/homebrew/go)"
37
39
38
- Then, insert the Homebrew directory at the top of your ``PATH `` environment
39
- variable. You can do this by adding the following line at the bottom of your
40
- ``~/.bashrc `` file
40
+ The script will explain what changes it will make and prompt you before the
41
+ installation begins.
42
+ Once you've installed Homebrew, insert the Homebrew directory at the top
43
+ of your ``PATH `` environment variable. You can do this by adding the following
44
+ line at the bottom of your ``~/.bashrc `` file
41
45
42
46
.. code-block :: console
43
47
0 commit comments