@@ -21,20 +21,18 @@ Doing it Right
21
21
22
22
Let's install a real version of Python.
23
23
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 >`_
28
30
package.
29
31
30
32
.. 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.
38
36
39
37
While OS X comes with a large number of UNIX utilities, those familiar with
40
38
Linux systems will notice one key component missing: a decent package manager.
@@ -63,6 +61,12 @@ Now, we can install Python 2.7:
63
61
64
62
$ brew install python
65
63
64
+ or Python 3:
65
+
66
+ .. code-block :: console
67
+
68
+ $ brew install python3
69
+
66
70
This will take a minute or two.
67
71
68
72
0 commit comments