我刚刚重新安装了windows,所以我不得不重新安装VS代码和Python,但我甚至不能运行"hello world“而不得到这个错误:
The terminal process failed to launch: Path to shell executable "C:\Windows\system32\cmd.exe;C:\Program Files\Python37" does not exist.使用的解释器是我的Python安装。
这是我在我的道路上所拥有的:
C:\Program Files\Python37;C:\Program Files\Python37\dlls;C:\Program Files\Python37\lib

我尝试将此C:\Windows\System32\cmd.exe;添加到路径的开头,但没有解决问题。
我应该怎么做才能摆脱这条消息,重新开始编码呢?Thx
发布于 2020-08-31 17:58:27
您在用户settings.json文件中设置的"terminal.integrated.shell.windows“配置的值是什么?错误消息显示您设置了'C:\Windows\system32\cmd.exe;C:\Program文件\Python37‘的值。
打开命令调色板(Ctrl+Shift+P),键入‘终端:选择默认外壳’并选择一个外壳。或者在Terminal面板上选择shell的下拉列表,然后单击'Select Default Shell‘。
https://stackoverflow.com/questions/63626161
复制相似问题