-
|
When I execute "poetry install" or "poetry env info" i get [Errno 2] No such file or directory: 'python' I'm on OSX 14.2.1 on M1, Python 3.11.4, Poetry 1.7.1 and I set config virtualenvs.in-project = true |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Can you check if your virtual environment is created correctly? .venv/bin/python --version |
Beta Was this translation helpful? Give feedback.
-
I removed it (because I though something might be broken) and now I cannot (re-)create it again. |
Beta Was this translation helpful? Give feedback.
Try creating an environment manually perhaps?
Another thing to maybe check is also if your poetry install is not broken. For example see if what interpreter poetry itself uses is available.
You can see this using the following one liner.
head -n5 $(which poetry)If it is broken maybe a good idea to uninstall poetry and install it again.
My personal preference is to use
pipxto install poetry, you can also use the poetry install script.