Skip to content

Commit af75a6a

Browse files
author
cclauss
authored
Changes in how homebrew installs Python on Mac OSX
Homebrew no longer sets `pip`. See 5 executable names in https://docs.brew.sh/Homebrew-and-Python.html * `python` points to the macOS system Python (with no manual PATH modification) * `python2` points to Homebrew’s Python 2.7.x (if installed) * `python3` points to Homebrew’s Python 3.x (if installed) * `pip2` points to Homebrew’s Python 2.7.x’s pip (if installed) * `pip3` points to Homebrew’s Python 3.x’s pip (if installed)
1 parent 5249c9c commit af75a6a

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

docs/starting/install3/osx.rst

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ Pip
7070

7171
Homebrew installs ``pip3`` for you.
7272

73-
``pip3`` is the alias for the Python 3 version of ``pip`` on systems with both
74-
the Homebrew'd Python 2 and 3 installed.
73+
``pip3`` is the alias to ``pip`` pointing to the Homebrew'd Python 3.
7574

7675
Working with Python 3
7776
---------------------
@@ -84,18 +83,22 @@ version of Python 3 as well.
8483
8584
$ python
8685
87-
will launch the Python 2 interpreter.
86+
will launch the system Python interpreter.
87+
88+
.. code-block:: console
89+
90+
$ python2
91+
92+
will launch the homebrew-installed Python 2 interpreter (if any).
8893

8994
.. code-block:: console
9095
9196
$ python3
9297
93-
will launch the Python 3 interpreter.
98+
will launch the homebrew-installed Python 3 interpreter.
9499

95-
``pip3`` and ``pip`` will both be available. If the Homebrew version of Python
96-
2 is not installed, they will be the same. If the Homebrew version of Python 2
97-
is installed then ``pip`` will point to Python 2 and ``pip3`` will point to
98-
Python 3.
100+
If the Homebrew version of Python 2 is installed then ``pip2`` will point to Python 2.
101+
If the Homebrew version of Python 3 is installed then ``pip3`` will point to Python 3.
99102

100103

101104
Virtual Environments

0 commit comments

Comments
 (0)