Skip to content
Home » VSCode The Python path in your debug configuration is invalid

VSCode The Python path in your debug configuration is invalid

To solve VSCode The Python path in your debug configuration is invalid error follow below methods.

ERROR LOG

I’m attempting to debug a simple Python application by pressing “F5” or “Run with debugger.” When I use the Python extension and hit F5, a pop-up displays in the bottom right that says, “The Python path in your debug configuration is invalid.”

The Python path in your debug configuration is invalid

How to solve The Python path in your debug configuration is invalid in VSCode ?

Type python into the command palette (ctrl+shift+P) and look for “Python:Select Interpreter.” You will be prompted to enter the Python installation path.
If you are using a virtual environment, which is most of the time the case. Look for the path.venv/Script/python, or choose the python path where you installed it on your local system.

Fix by adding python path in vscode

  1. See File -> Preferences -> Settings.
  2. Click the “Open Settings (JSON)” button. Make sure that this entry has python.exe at the end. "python.pythonPath": "C:\\Users\\<user_name>\\AppData\\Local\\Programs\\Python\\Python38\\python.exe

Hope the above solution works.

Also read :

UserWarning: Workbook contains no default style apply openpyxl’s default
AttributeError: module ‘tensorflow._api.v1.compat.v2’ has no attribute ‘__internal__