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
PDM doesn't find Python interpreters when PDM_IGNORE_ACTIVE_VENV is set #2779
Comments
I had a look into the PDM source code, the logic of getting a valid interpreter can be found here: Line 193 in 881cd4e
If Instead, I would PDM expect to fall back to creating a new virtual environment when |
I just hit the same issue. |
…ding an interpreter (fix pdm-project#2779)
…ding an interpreter (fix pdm-project#2779)
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
Have some Python version
>=3.10
installedUse following minimal
pyproject.toml
Set environment variable
PDM_IGNORE_SAVED_PYTHON
andPDM_IGNORE_ACTIVE_VENV
.Try to install the project:
Actual behavior
PDM does not find a Python version to use and errors out:
Expected behavior
According to PDM Docs: Virtualenv auto-detection I would expect that PDM creates a new virtual environment because virtual env auto-detection fails.
Environment Information
Environment Information without the problematic environment variables set:
The text was updated successfully, but these errors were encountered: