Poetry won't run with conda environment activated: [Errno 2] No such file or directory: 'python'
#9599
Labels
[Errno 2] No such file or directory: 'python'
#9599
Description
Almost all poetry commands I've tried apart from
poetry --version
won't run and keep giving me this error of[Errno 2] No such file or directory: 'python'
. I've gone through all the other similar issues (#6841, #7456) but none of the solutions worked for me. The main thing for me is that the issue specifically arises when I activate my conda environment which I want to use for my environment management. I've tried reinstalling poetry with pipx (before it was installed via homebrew and curl), however, that still hasn't resolved the issue for me. I have a different project that I use poetry for and because that project uses a poetry environment, I don't get the same issue. I don't want to use poetry's environment for this project because I'll also be doing scientific computing in the project as well, so I prefer to use conda for managing the environment and poetry for dependency management only.Workarounds
Not using an external environment (?)...
Poetry Installation Method
pipx
Operating System
Mac OS 14.5
Poetry Version
1.8.3
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: