-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
Description
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (-vvvoption).
- OS version and name: Windows 10 1909 x64
- Poetry version: 1.0.0
- Link of a Gist with the contents of your pyproject.toml file: N/A
Issue
On Windows, Python is typically installed into C:\Program Files, i.e. C:\Program Files\Python38\python.exe. Attempting to make poetry use it rather than the Python it is installed for results in:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
[EnvCommandError]
Command C:\Program Files\Python38\python.exe -c "import sys; print('.'.join([str(s) for s in sys.version_info[:3]]))" errored with the following return
code 1, and output:
In this case, the path must be treated as ["C:\\Program Files\\Python38\\python.exe"].
Python for Windows also comes with the py program for selecting which installed Python gets called. You can call it like py and it will start the latest Python, or like py -2.7-32 to start that other thing. In that case, the string must be interpreted as ["py", "-2.7-32"]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected