question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Python path in your debug configuration is invalid.

See original GitHub issue

Environment 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:

  1. download python-3.8.3-embed-amd64.zip and Unzip it

  2. write sample python code and use vscode opened it:

print(123)
  1. 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"
        },
    ]
}
  1. press f5 to debug it
  2. message fatal: image

sXc51RV7TZ

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
farshad6218commented, May 30, 2021

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).”

6reactions
scalavisioncommented, Jan 6, 2021

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 😅

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found