Raghav Tyagi
Raghav Tyagi

Reputation: 1

Python Interpreter not detected in Visual Studio Code

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: Error: You need to select a Python interpreter before you start debugging.

Upvotes: 0

Views: 9561

Answers (2)

Jill Cheng
Jill Cheng

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

KnightKnight
KnightKnight

Reputation: 217

Go to extensions And Download Python Interpreter Extension !

Upvotes: -2

Related Questions