WSL is not registering my ENV Python

I have follwed a few YT and the support forums remarks on how to use WSL for Python. I really want to use Ubuntu on Windows.

However when choosing a virtualenv's python, I get the following issue when selecting?

 

And I get the following error when trying to run code where my script is on my local projects folder.

 

I am aable to use the \usr\bin\python3 in the WSL directory.

0
4 comments

So PyCharm doesn't see a Python executable of that env, right? Have you tried specifying the full path manually instead of browsing to python executable?

You mentioned that you get an error when running the code but haven't attached a screenshot or a text. Could you provide either of these?

0

Thanks for trying to help me.

So almost got it working but there is something weird. In my Ubuntu WSL here is the screen shot of the path: This is in my WSL home directory as me (Axwack)

 

But when I do it in pycharm it is pointing to something completely different and I don't know where:  It doesn't even have the env I made at the WSL command line. How can I fix this?

 

And this seems to be pointing to the right python but the Terminal is not correct.

 

0

Is it the same WSL distribution in both cases?

There is something strange. On your screenshot, the modification date of ".." is 2014, but WSL wasn't even released in 2014.

0

That’s what I can’t understand. Where is that directory? It isn’t even showing up on the wsl that is not in Pycharm.

0

Please sign in to leave a comment.