Visitar URL original
added high_sierra setup instructions by bnorquist · Pull Request #898 · realpython/python-guide · GitHub
The Wayback Machine - https://web.archive.org/web/20210119191544/https://github.com/realpython/python-guide/pull/898
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added high_sierra setup instructions #898

Closed
wants to merge 1 commit into from

Conversation

@bnorquist
Copy link
Contributor

@bnorquist bnorquist commented May 14, 2018

No description provided.

@kennethreitz42
Copy link
Contributor

@kennethreitz42 kennethreitz42 commented May 18, 2018

$ brew link python i believe

@bnorquist
Copy link
Contributor Author

@bnorquist bnorquist commented May 19, 2018

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

@charliesneath
Copy link

@charliesneath 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

@cwfinn 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

@jmmendivil jmmendivil commented Sep 17, 2018

$ 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
Contributor Author

@bnorquist 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
Member

@dbader 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
Contributor Author

@bnorquist bnorquist commented Nov 20, 2018

@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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.