'Visual Studio Code cant locate my python interpreter

I can run python in the terminal but it shows that the python interpreter is not found and when I run the file it shows the python path in your debug configuration is invalid.

click to see image

when i click on select python interpreter, it shows this, and yes the file path is completely valid

python works perfectly fine in terminal



Solution 1:[1]

Try the Python Extension in VS-Code. Go on the left to "Extensions", type "Python", go for the first one or which ever you like (I chose the first). You´ll probably need to select your python interpreter again after this

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Artur