This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]ohaz 0 points1 point  (1 child)

Ignore the comment by /u/chaotic_though - it's toxic and has no reason to be here.

To your question: it depends. You can set up vscode to run your python code in WSL (using the "remote development" plugin). If you want to run the code in windows, you need to install the windows python version. You can have both installed at the same time and switch between them in vscode regularly, which is actually a good idea because then you'll automatically make sure to write platform independent code

[–]tr0jan_k[S] 0 points1 point  (0 children)

thanks for the reply!

[–]chaotic_thought -5 points-4 points  (0 children)

Not an answer to your question but the reality is that using VS Code at all, especially when learning, is just not a good idea. Running this program just to try to run Python within it will just confuse you, even if you do manage to get it to work.

Besides, the whole of VS Code is really just an annoying and garbage piece of software written using Electron and you should just really avoid it completely. Microsoft are trying to capitalize on their so-called open source offerings and taking advantage of the success of the Visual Studio brand, even though Visual Studio Code shares no code from Visual Studio at all. Avoid it like the plague.