The Python path in your debug configuration is invalid.
See original GitHub issueEnvironment data
- VS Code version: 1.45.1
- Extension version (available under the Extensions sidebar):2020.5.80290
- OS and version: win10
- Python version (& distribution if applicable, e.g. Anaconda): python-3.8.3-embed-amd64
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
Expected behaviour
vscode can find python interpreter
Actual behaviour
vscode cann’t found python interpreter
Steps to reproduce:
-
download python-3.8.3-embed-amd64.zip and Unzip it
-
write sample python code and use vscode opened it:
print(123)
- create launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: cureent file",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"pythonPath": "e:/tools/re/python-3.8.3-embed-amd64/python.exe"
},
]
}
- press f5 to debug it
- message fatal:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:15 (2 by maintainers)
Top Results From Across the Web
VSCode: The Python path in your debug configuration is invalid
Go to extensions view with ctrl+shift+x in Linux version or Menu -> View -> Extensions · Find blue Button Reload required for the...
Read more >The Python path in your debug configuration is invalid
To Solve VSCode: The Python path in your debug configuration is invalid just Open Command Palette (Ctrl + Shift + P). Type Python:...
Read more >VSCode: The Python path in your debug configuration is invalid
Vscode is not able to find the python path or its not yet set. Open command palette(ctrl+shift+P) and type python and look for...
Read more >Debugging configurations for Python apps in Visual Studio Code
For now, in the Select a debug configuration menu that appears, select Python File.
Read more >Vscode: The Python Path In Your Debug ... - ADocLib
To Solve The Python path in your debug configuration is invalid Error If VS Code does not automatically locate an interpreter you want...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Follow The Microsoft guide to solve your problem.
https://code.visualstudio.com/docs/python/environments > “To select a specific environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P).”
I had wrong path to python interpreter in the user settings. When manually setting the path to the interpreter via the gui, to be used inside the dev container, it silently failed. I found it in the Python log output eventually. A popup for this error would have been very helpful 😅