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)
This commit is contained in:
cclauss
2017-08-17 13:44:46 +02:00
committed by GitHub
parent 5249c9c8af
commit 2d1b231c4d
+15
View File
@@ -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 <https://python-packaging-user-guide.readthedocs.io/pip_easy_install/#pip-vs-easy-install>`_,
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
--------------------