PDM Automatic Activation Question #1228
-
See the tree diagram and CLI commands below. The I had hoped to setup PDM via venv and pep582 with the same ability to activate and deactivate. Either I am not applying the PDM documentation properly or pyenv virtualenv is interfering with PDM. Can I get PDM to work in this context alonside pyenv virtualenv tools? If possible how do I configure PDM to work like pyenv virtualenv that activates the environment or finds the pep582 packages automatically when inside the project folder and deactivates when outside the folder?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you mean to auto-activate the shell so that executables inside the venv are brought to the front in the |
Beta Was this translation helpful? Give feedback.
If you mean to auto-activate the shell so that executables inside the venv are brought to the front in the
PATH
, PDM doesn't provide such ability. You can still create venv withpyenv
and use it to activate for you. PDM will respect theVIRTUAL_ENV
environment variable. Just make sure you don't store the python path in.pdm.toml
, to delete it:pdm config -ld python.path
.