Skip to content

Commit 26c9949

Browse files
author
cclauss
authored
Homebrew changed the way that Python is installed
https://docs.brew.sh/Homebrew-and-Python The default __python__ is now Python 3.
1 parent aef9ad5 commit 26c9949

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

docs/starting/install3/osx.rst

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,15 @@ Now, we can install Python 3:
6262

6363
.. code-block:: console
6464
65-
$ brew install python3
65+
$ brew install python
6666
6767
This will take a minute or two.
6868

6969

7070
Pip
7171
---
7272

73-
Homebrew installs ``pip3`` for you.
74-
75-
``pip3`` is the alias to ``pip`` pointing to the Homebrew'd Python 3.
73+
Homebrew installs ``pip`` pointing to the Homebrew'd Python 3 for you.
7674

7775
Working with Python 3
7876
---------------------
@@ -85,7 +83,7 @@ version of Python 3 as well.
8583
8684
$ python
8785
88-
will launch the system Python interpreter.
86+
will launch the homebrew-installed Python 3 interpreter.
8987

9088
.. code-block:: console
9189
@@ -100,21 +98,13 @@ will launch the homebrew-installed Python 2 interpreter (if any).
10098
will launch the homebrew-installed Python 3 interpreter.
10199

102100
If the Homebrew version of Python 2 is installed then ``pip2`` will point to Python 2.
103-
If the Homebrew version of Python 3 is installed then ``pip3`` will point to Python 3.
101+
If the Homebrew version of Python 3 is installed then ``pip`` will point to Python 3.
104102

105-
The rest of the guide will assume that ``python`` references Python 3. You can simply choose to always invoke ``python3`` instead, and much is backwards compatible. However, performing the following steps will set Python 3 as the default interpreter for ``python`` in a shell.
103+
The rest of the guide will assume that ``python`` references Python 3.
106104

107105
.. code-block:: console
108106
109-
# Do I have a Python 2 problem?
110-
$ python --version
111-
Python 2.7.10 # Referencing OSX system install
112-
$ which python
113-
/usr/bin/python # Yup, homebrew's would be in /usr/local/bin
114-
115-
# Symlink /usr/local/bin/python to python3
116-
$ ln -s /usr/local/bin/python3 /usr/local/bin/python
117-
107+
# Do I have a Python 3 installed?
118108
$ python --version
119109
Python 3.6.4 # Success!
120110
# If you still see 2.7 ensure in PATH /usr/local/bin/ takes pecedence over /usr/bin/

0 commit comments

Comments
 (0)