Is it possible to use PDM with both Windows and Linux (WSL) at the same time? #2155
Unanswered
Flightkick
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My host system runs Windows, I use WSL for a lot of things and it is also set to be my default terminal.
Currently, when initializing PDM on a project a
.pdm-python
file is written with the absolute path to the Python interpreter. This path is based on the Windows file path when done on the host.When I try to activate venv from the WSL terminal this obviously fails.
I have a separate install of PDM on my WSL distribution, It would be great if I could run commands in both environments.
Is this currently possible? If not, would this be worth supporting?
PS: In the same regard, when initialized on the Windows host. Running
pdm use
on WSL seems to fail incorrectly.I can make a separate issue for this but since it's a special case I'd rather check if this Windows/WSL configuration is something you'd want to support.
$ pdm use Interpreters found but not matching: - /usr/bin/python (3.10) - /usr/bin/python3.11 (3.11) - /usr/bin/python3.10 (3.10) [NoPythonVersion]: No python is found meeting the requirement python >=3.11
Beta Was this translation helpful? Give feedback.
All reactions