From 2d1b231c4d61813ec28a2ea546cb76862f5ba40d Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 17 Aug 2017 13:44:46 +0200 Subject: [PATCH] Changes in how homebrew installs Python on Mac OSX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- docs/starting/install/osx.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/starting/install/osx.rst b/docs/starting/install/osx.rst index 24eb27437..bd7733bf6 100644 --- a/docs/starting/install/osx.rst +++ b/docs/starting/install/osx.rst @@ -77,6 +77,15 @@ or Python 3: This will take a minute or two. +Homebrew names the executable ``python2`` so that you can still run the system Python via the executable ``python``. + + +.. code-block:: console + + $ python -V # system Python interpreter + $ python2 -V # Homebrew installed Python 2 interpreter + $ python3 -V # Homebrew installed Python 3 interpreter (if installed) + Setuptools & Pip ---------------- @@ -93,6 +102,12 @@ that is recommended over ``easy_install``. It is superior to ``easy_install`` in `several ways `_, and is actively maintained. +.. code-block:: console + + $ pip2 -V # pip pointing to the Homebrew installed Python 2 interpreter + $ pip3 -V # pip pointing to the Homebrew installed Python 3 interpreter (if installed) + + Virtual Environments --------------------