mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #835 from cclauss/patch-3
Changes in how homebrew installs Python on Mac OSX
This commit is contained in:
@@ -77,6 +77,15 @@ or Python 3:
|
|||||||
|
|
||||||
This will take a minute or two.
|
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
|
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>`_,
|
in `several ways <https://python-packaging-user-guide.readthedocs.io/pip_easy_install/#pip-vs-easy-install>`_,
|
||||||
and is actively maintained.
|
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
|
Virtual Environments
|
||||||
--------------------
|
--------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user