I accidentally deleted python, then when I reinstalled it, VS Code kept showing me an error saying
You need to select a Python Interpreter before you start debugging. Tip: click on "Select Python Interpreter" in the status bar."
When I go to the bar there are no interpreters available. When I try on someone else's laptop it shows the interpreters.
Python is already in the PATH.
You should find and choose python interpreter manually:
Ctrl+Shift+P, Python: Select Interpreter
Enter interpreter path – Find (or enter the path manually)

Find your python.exe in your python installation path, the default path is like:
C:\Users\***\AppData\Local\Programs\Python\Python37
Check if the problem is solved
OR you can take the following steps to override settings for interpreter
Ctrl+Shift+P, Preferences: Open Settings(JSON)
Copy your python path
Add line like this, paste and replace the path:
"python.pythonPath": "C:\\Users\\***\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe"
Ctrl+S to save the changes.
See more for macOS/Linux:
https://code.visualstudio.com/docs/python/environments#_manually-specify-an-interpreter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With