(osx) how to make python reference python3#872
Merged
kennethreitz merged 1 commit intorealpython:masterfrom Feb 10, 2018
Merged
(osx) how to make python reference python3#872kennethreitz merged 1 commit intorealpython:masterfrom
python reference python3#872kennethreitz merged 1 commit intorealpython:masterfrom
Conversation
I noticed that the very next page (which is no longer OSX specific) makes the assumption that `python` will invoke the Python 3 interpreter, while the last mention of versions on this page leaves `python` referencing the OSX System Python interpreter. I honestly do not know if this is the "correct" way to configure this default. It looks like brew is cautious about symlinking over the native Python 2.7.10 (High Sierra) and they might have good reason. All of my projects are Python 3 now, so i'm ready to "make it ~facebook~ PATH official with Python 3" Regardless of how it's done - or if it's a bad idea - it's worth mentioning IMO because there is a discontinuity of where this page leaves `python` and where the next page assumes `python` to be.
Contributor
|
this will no longer be neccessary in about a month |
Contributor
Author
|
@kennethreitz Even better! Update to brew defaults coming? |
Contributor
|
correct! March 1st I think :) |
Contributor
|
might as well make this change in the meantime :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I noticed that the next page, Pipenv & Virtual Environments, re-enforces that
pythonwill be assumed to invoke the Python 3 interpreter and is Highly Preferred. The last mention on Installing Python 3 for OSX leavespythonreferencing the OSX System Python interpreter (2.7.10 for high Sierra).I honestly do not know if this is the "correct" way to configure this default. It looks like brew is cautious about symlinking over the native Python 2.7.10 (High Sierra) and they might have good reason.
All of my projects are Python 3 now, so i'm ready to "make it
facebookPATH official with Python 3" - as I think the documentation makes abundantly clear is a goal to to strive for. 😂Regardless of how it's done - or if it's a bad idea and just saying sorry your SOL but use
python3. This would at least remove a the discontinuity between pages and maybe help some people not go through with the native interpreter, the worst of all options on OSX.