mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #936 from bnorquist/mojave
Add installation instructions for osx high sierra & mojave
This commit is contained in:
@@ -54,6 +54,12 @@ Once you've installed Homebrew, insert the Homebrew directory at the top
|
|||||||
of your :envvar:`PATH` environment variable. You can do this by adding the following
|
of your :envvar:`PATH` environment variable. You can do this by adding the following
|
||||||
line at the bottom of your :file:`~/.profile` file
|
line at the bottom of your :file:`~/.profile` file
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
|
||||||
|
|
||||||
|
If you have OS X 10.12 (Sierra) or older use this line instead
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
|
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
|
||||||
@@ -106,8 +112,8 @@ The rest of the guide will assume that ``python`` references Python 3.
|
|||||||
|
|
||||||
# Do I have a Python 3 installed?
|
# Do I have a Python 3 installed?
|
||||||
$ python --version
|
$ python --version
|
||||||
Python 3.6.4 # Success!
|
Python 3.7.1 # Success!
|
||||||
# If you still see 2.7 ensure in PATH /usr/local/bin/ takes precedence over /usr/bin/
|
|
||||||
|
|
||||||
Pipenv & Virtual Environments
|
Pipenv & Virtual Environments
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user