Quantcast
Channel: How to link WSL to my already installed python on windows? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 3

Answer by Jude Davis for How to link WSL to my already installed python on windows?

$
0
0

So here's the problem. WSL has a different version of python installed, as opposed to your windows machine. You can link them like this:

Run these commands in WSL:

$ sudo apt remove python3 python3-pip$ sudo apt autoremove

Now in your .bashrc on WSL, add the following:

alias python3="cmd.exe /C python3"alias pip3="cmd.exe /C pip3"

Now restart your WSL application, and there! It should work! This worked for me very well...


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images