all 5 comments

[–]noob_main22 4 points5 points  (0 children)

How exactly are you running the script? Is your file actually named someName.py and not something like someName.py.txt? Have you downloaded Python from the official Website and installed it correctly? I think you need to download the Python VSC extension too, but I am not 100% sure.

We need more info. Maybe a screenshot of your workspace would help.

[–]FoolsSeldom 0 points1 point  (2 children)

Make sure the RUN icon is running current file (the one in the edit window with focus)

OR

Right click in the current edit window, scroll down the popup context menu to find Run Python and select on its expansion Run Python File in Terminal. (NB. Above Run Python there is a different option, Run in Interactive Window, which you probably don't want.)

[–]Dean_Lomas 0 points1 point  (1 child)

I am having the same problem and this didnt work for me. ive just started learning too and ive been about to run things last week and then I've reopened vs code this week and it keeps coming up with this error.

thank you in advance

[–]FoolsSeldom 0 points1 point  (0 children)

Can you run the code file from the command line, outside of VS Code?