Reputation: 1
I've been sitting here for an hour not knowing what's going on, I'm a student so I don't really know much but I don't know what's going on over here, so here's a picture of the error:
Upvotes: 0
Views: 9561
Reputation: 10372
This is because the Python interpreter is not selected for VSCode, and the Python extension of VSCode cannot identify the Python code through it.
The Python interpreter in VSCode refers to the Python that recognizes and interprets code, which needs to be installed outside of VSCode.
The main conditions required to run Python code in VSCode are: Python, Python extension, VSCode.
It is recommended that you could refer to this document:Use Python in VS Code.
Upvotes: 3