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

前端 未结 6 629
生来不讨喜
生来不讨喜 2021-01-19 09:26

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:

6条回答
  •  隐瞒了意图╮
    2021-01-19 09:49

    This fixed it for me. The launch.json file in the .vscode folder in your working directory NOT in your program files directory needs to be opened in the Visual Studio Code editor. Here you need to find the line (for me line 13) at the top that says "pythonPath": here you type "py" and make sure to save it!! Ctrl+S. It has something to do I think with the way it looks for python spelled "python" when it needs to be spelled as "py".

    Here is the link where I found the info: https://paulpccodes.blogspot.com/2017/08/fixing-failed-to-launch-python-process.html

提交回复
热议问题