Skip to content

added high_sierra setup instructions#898

Closed
bnorquist wants to merge 1 commit into
realpython:masterfrom
bnorquist:master
Closed

added high_sierra setup instructions#898
bnorquist wants to merge 1 commit into
realpython:masterfrom
bnorquist:master

Conversation

@bnorquist
Copy link
Copy Markdown
Contributor

No description provided.

@kennethreitz
Copy link
Copy Markdown
Contributor

$ brew link python i believe

@bnorquist
Copy link
Copy Markdown
Contributor Author

that would link python 2 in the case where you have a user installed 2.7 as well though no?

@charliesneath
Copy link
Copy Markdown

charliesneath commented May 25, 2018

@bnorquist Adding the following line to ~/.bash_profile (not ~/.profile) fixed this issue for me:

export PATH="~/Library/Python/3.6/bin:$PATH"

This fix is actually noted in the documentation in this section's note, but it references ~/.local as the typical output example, instead of the example above that is relevant to macOS users.

@cwfinn
Copy link
Copy Markdown

cwfinn commented Jul 12, 2018

Not sure why this was closed. Following the instructions here will not work as stated. It says, under the "Working with Python 3" section:

$ python

will launch the homebrew-installed Python 3 interpreter. But it will not under the instructions as they currently stand. It will launch the version of Python shipped with MacOS, since the stated path, export PATH=/usr/local/bin:/usr/local/sbin:$PATH is now incorrect, as stated and corrected for in this PR and the corresponding issue. Something needs to be added here, otherwise many people will become confused.

@jmmendivil
Copy link
Copy Markdown

$ brew link python i believe

It's not the solution, see

$ brew link python
Warning: Already linked: /usr/local/Cellar/python/3.7.0
To relink: brew unlink python && brew link python
$ python --version
Python 2.7.10

the solution I found (for a High Sierra clean install) is based on this PR. I too wonder why @kennethreitz closed this...

@bnorquist
Copy link
Copy Markdown
Contributor Author

bnorquist commented Nov 16, 2018

Just went through this again on a new computer. @kennethreitz brew unlink python && brew link python doesn't work. If you follow the instructions here: https://docs.python-guide.org/starting/install3/osx/ on High Sierra python will still point to system python 2.7. I get the same behavior as @jmmendivil above.

@dbader
Copy link
Copy Markdown
Member

dbader commented Nov 16, 2018

Hey so I'd love to get the macOS install guide updated so that the steps work correctly with a new Mojave install.

Anybody here want to spin up a macOS VM & update the article?

@bnorquist
Copy link
Copy Markdown
Contributor Author

@dbader #936
just tested these steps on a Mojave vm, works just fine.

@dbader dbader reopened this Nov 20, 2018
@dbader dbader closed this Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants