Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2815

How to link WSL to my already installed python on windows?

$
0
0

So, recently I installed the WSL from the Windows Store and now I'm having some problems with python.I already have python and some of its libraries installed on my Windows 10, but whenever I type py in the Ubuntu terminal it doesn't understand it, it only understands when I type "python3". Is there a way to add the py command to activate python?Also in the interactive mode ($python3 -i), whenever I try to import any library (i.e numpy) it throws an error (ModuleNotFoundError: No module named 'numpy') while I already have numpy installed on my Windows.It's like the WSL is acting like it can't even see python and its libraries installed in my windows!

an image of my WSL struggling


Viewing all articles
Browse latest Browse all 2815

Trending Articles