mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 06:46:17 +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
|
||||
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
|
||||
|
||||
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?
|
||||
$ python --version
|
||||
Python 3.6.4 # Success!
|
||||
# If you still see 2.7 ensure in PATH /usr/local/bin/ takes precedence over /usr/bin/
|
||||
Python 3.7.1 # Success!
|
||||
|
||||
|
||||
Pipenv & Virtual Environments
|
||||
-----------------------------
|
||||
|
||||
Reference in New Issue
Block a user