To Solve The Python path in your debug configuration is invalid in vscode just Open Command Palette (Ctrl + Shift + P). Type Python: Select Interpreter, open it Select the python interpreter or enter the full path to the python interpreter.