You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
note("[success]__pypackages__[/] is detected, using the PEP 582 mode")
self.python=py_version
returnpy_version
.
This confused me to look for an existing __pypackages__ dir.
This happens within a Docker container, where Python is installed into /venv, but apparently not detected as a virtualenv.
The workaround is to configure it explicitly in the Dockerfile also: RUN printf '[python]\nuse_venv = false\npath = "/venv/bin/python"' > /app/.pdm.toml.
The text was updated successfully, but these errors were encountered:
Without
python.path
set in the config, butpython.use_venv = false
it will display "pypackages is detected, using the PEP 582 mode" viapdm/src/pdm/project/core.py
Lines 212 to 216 in 8d51c7b
This confused me to look for an existing
__pypackages__
dir.This happens within a Docker container, where Python is installed into
/venv
, but apparently not detected as a virtualenv.The workaround is to configure it explicitly in the Dockerfile also:
RUN printf '[python]\nuse_venv = false\npath = "/venv/bin/python"' > /app/.pdm.toml
.The text was updated successfully, but these errors were encountered: