-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Suggest using the py
launcher when installing Poetry globally on Windows
#5611
Comments
Thanks for highlighting this. I'm not too familiar with the windows ecosystem to comment on how relevant this is. Might be worth a doc update. A generic note that the python executable could be different with this as an example might be good. Happy to review PRs. Source: https://github.com/python-poetry/poetry/blob/master/docs/_index.md |
I'm going to gather some data to make sure I can support this change. I did a default installation of Python 3.10.4 from the official python.org download page on Windows 10.
PS C:\Users\IEUser> python
python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\IEUser> py
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> In a customized installation: "Add Python to the environment variables" is unchecked, so The Microsoft Store package, on the other hand, sadly does not install the |
I asked Steve Dower what his thoughts were on this |
According to Steve Dower, 95% of Windows users download from python.org, so let's target |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue
I am starting to use Poetry and would like to try to improve some rough edges I have hit before recommending it to novice users.
On Windows, the official installation instructions state:
And similar for the
master
branch:The problem is that the most common way to install/invoke Python on Windows for launching is through the
py
launcher. Addingpython
to thePATH
is a box that is unchecked by default. This means from an average user on Windows their first experience with trying to install Poetry the recommended way will be failure.I recommend that the default instructions
| py -
or at the very least mention that you might have to do this prominently.The text was updated successfully, but these errors were encountered: