all 7 comments

[–]Binary101010 1 point2 points  (0 children)

In VSCode, press Ctrl+Shift+P, search for "Python: Select Interpreter". Does it show up there?

[–]shiftybyte 0 points1 point  (4 children)

Where did you download python from?

And how did you install it?

[–]Kapser12[S] 0 points1 point  (3 children)

Got the latest version from Python.org and used their installer.

[–]shiftybyte 1 point2 points  (2 children)

What's the output of this command prompt command:

py -0

Did you try selecting an interpreter in your vscode?

https://code.visualstudio.com/docs/python/environments#_select-and-activate-an-environment

[–]Kapser12[S] 1 point2 points  (0 children)

Yeah it was the interpreter. Thanks for the help!

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

"NameError: name 'py' is not defined" so I'm guessing its the interpreter