Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python-3.x

I just downloaded Python and Visual Studio. I'm trying to test the debugging feature for a simple "Hello World" script and I'm receiving this error:

Failed to launch the Python Process, please validate the path 'python'

followed by this in the debug console:

Error: spawn python ENOENT

Could someone please help me out and tell me how to fix this?

I'm running on windows 10.

Thanks!

like image 810
Mr Soy Sauce Avatar asked Dec 15 '22 03:12

Mr Soy Sauce


1 Answers

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

like image 143
Houman Avatar answered Jun 17 '23 02:06

Houman