@@ -21,20 +21,18 @@ Doing it Right
2121
2222Let's install a real version of Python.
2323
24- Before installing Python, you'll need to install GCC. GCC can be obtained
25- by downloading `Xcode <http://developer.apple.com/xcode/ >`_, the smaller
26- `Command Line Tools <https://developer.apple.com/downloads/ >`_ (must have an
27- Apple account) or the even smaller `OSX-GCC-Installer <https://github.com/kennethreitz/osx-gcc-installer#readme >`_
24+ Before installing Python, you'll need to install a C compiler. The fastest way
25+ is to install the Xcode Command Line Tools by running
26+ ``xcode-select --install ``. You can also download the full version of
27+ `Xcode <http://developer.apple.com/xcode/ >`_ from the Mac App Store, or the
28+ minimal but unofficial
29+ `OSX-GCC-Installer <https://github.com/kennethreitz/osx-gcc-installer#readme >`_
2830package.
2931
3032.. note ::
31- If you already have Xcode installed, do not install OSX-GCC-Installer.
32- In combination, the software can cause issues that are difficult to
33- diagnose.
34-
35- .. note ::
36- If you perform a fresh install of Xcode, you will also need to add the
37- commandline tools by running ``xcode-select --install `` on the terminal.
33+ If you already have Xcode installed or plan to use Homebrew, do not install
34+ OSX-GCC-Installer. In combination, the software can cause issues that are
35+ difficult to diagnose.
3836
3937While OS X comes with a large number of UNIX utilities, those familiar with
4038Linux systems will notice one key component missing: a decent package manager.
@@ -63,6 +61,12 @@ Now, we can install Python 2.7:
6361
6462 $ brew install python
6563
64+ or Python 3:
65+
66+ .. code-block :: console
67+
68+ $ brew install python3
69+
6670 This will take a minute or two.
6771
6872
0 commit comments