Visual Studio Python Failed to launch the Python Process, please validate the path python & Error: spawn python ENOENT

Visual Studio Python Failed to launch the Python Process, please validate the path python & Error: spawn python ENOENT

Do not uninstall!

1) Go to location that you installed the program.
*example: C:Program Files (x86)Microsoft VS Code
copy the location.

2) right click on computer> properties >Advanced System Settings> Environment variables > under user variables find path click> edit> under variable value: go to the end of the line add ; then paste your location>ok > then go under system variables find path> do the same thing…. add ; then paste your location.
FOR EXAMPLE ;C:Program Files (x86)Microsoft VS Code

3) Restart your Visual Studio Code

For those who are having this error after the recent (May-June of 2017) update of Visual Studio Code.

Your old launch.json file might be causing this issue, due to the recent updates of launch.json file format and structure.
Try to delete launch.json file in the .vscode folder. The .vscode folder exists in your workspace where your source code exists, not to be confused with the one in your user home folder (C:Users{username}.vscode).

This workaround worked fine for me with Windows10 + Visual Studio Code + Python extension. Just delete the existing launch.json and restart Visual Studio Code, and then start your debugging. The launch.json file might be regenerated again, but this time it should be in the correct shape.

Visual Studio Python Failed to launch the Python Process, please validate the path python & Error: spawn python ENOENT

Simply restart your VB studio code. Those show that some packages have been downloaded but not yet installed until reboot it.

Leave a Reply

Your email address will not be published.