Skip to content

Commit eb16b73

Browse files
authored
Merge pull request realpython#749 from tdsmith/osx-install
Update OS X install guidance
2 parents ef26c66 + 2423a9d commit eb16b73

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

docs/starting/install/osx.rst

+15-11
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,18 @@ Doing it Right
2121

2222
Let'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>`_
2830
package.
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

3937
While OS X comes with a large number of UNIX utilities, those familiar with
4038
Linux 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

Comments
 (0)