Reputation: 130
I am trying to create a project in my WSL-Ubuntu20.04 (WSL-2)
through the Pycharm Professional
. And, when I select my desired directory in WSL
and choose Virtualenv
from Environment settings
, there is something wrong in the Base interpreter
setting. It can't detect the Python interpreter from WSl-Ubuntu20.04
, rather it shows all the existing interpreters from my Windows 10 (2004)
machine.
WSL://UBUNTU2004/usr/bin/python
interpreter from the setting in Pycharm.Ubuntu 20.04
in WSL-v2
on top of Windows 10 build 2004
Please see this Screenshot.
Upvotes: 0
Views: 449
Reputation: 7579
Creating virtual environments with WSL is not supported yet, please vote here https://youtrack.jetbrains.com/issue/PY-32853 (thumbs up near the title)
Upvotes: 1