-
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
poetry won't run - [Errno 2] No such file or directory: 'python' #7456
Comments
Installing
Note the presence of
|
debian, python 3.10... #6371 |
Thanks, this looks like #6371. Sorry for the noise. |
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. |
Poetry version:
Poetry (version 1.3.2)
(installed with pipx)Python version:
Poetry
Version: 1.3.2
Python: 3.10.9
[Errno 2] No such file or directory: 'python'
OS version and name: Debian GNU/Linux bookworm/sid
pyproject.toml: pyproject.toml
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below.Issue
Many poetry commands (e.g.,
poetry show
,poetry env info
fail with[Errno 2] No such file or directory: 'python'
.Seems like
poetry.utils.env.GenericEnv
is trying to run"python"
instead of referring tosys.executable
to get the python interpreter executable name.pipx has set up the venv for Poetry like so:
So there is a
python
command but it's not in thePATH
; it only exists in the pipx-managed venv.The text was updated successfully, but these errors were encountered: