-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Default to running python3 for x.py #95514
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
On my macOS machine, there is no python binary on the PATH. In this day and age (15 months after Python 2 has gone EOL), it doesn't seem crazy to default to Python3. Users who don't have python3 available could supposedly still run `python x.py` manually. This assumes that any environment where `python` is at version 3, `python3` is also on the PATH.
@djc it's not that simple unfortunately #71818 (comment) |
The job Click to see the possible cause of the failure (guessed by this bot)
|
On Windows, the problem is using the official Python installer with a shell that emulates a Linux environment (such as MSYS2 or git bash). This combination doesn't work because the official installer does not create a python3 alias. |
Okay, just going to close this then. The Windows situation seems totally broken. |
On my macOS machine, there is no python binary on the PATH. In this day
(15 months after Python 2 has gone EOL), it doesn't seem crazy to
default to Python3. Users who don't have python3 available could
supposedly still run
python x.py
manually.This assumes that any environment where
python
is at version 3,python3
is also on the PATH.