Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
更新Visual Studio代码和Python后出错_Python_Json - Fatal编程技术网

更新Visual Studio代码和Python后出错

更新Visual Studio代码和Python后出错,python,json,Python,Json,我最近将Visual Studio代码更新为1.13版,将Don Jayamanne Python 3.6更新为最新版本,每次运行调试控制台时,它都会在顶部显示此错误 未能启动Python进程,请验证路径“${config.Python.pythonPath}”的“Open launch.json” 调试控制台本身上还有一个单独的错误 “错误:spawn${config.python.pythonPath}enoint” 我必须在launch.json中验证什么 为什么在调试控制台中会出现这种错

我最近将Visual Studio代码更新为1.13版,将Don Jayamanne Python 3.6更新为最新版本,每次运行调试控制台时,它都会在顶部显示此错误

未能启动Python进程,请验证路径“${config.Python.pythonPath}”的“Open launch.json”

调试控制台本身上还有一个单独的错误

“错误:spawn${config.python.pythonPath}enoint”

  • 我必须在launch.json中验证什么
  • 为什么在调试控制台中会出现这种错误

  • 在升级到1.13后遇到了相同的问题。 通过从projects launch.json中删除以下行解决了此问题:

    "pythonPath": "${config:python.pythonPath}",
    
    我的工作站路径中设置了python,所以我猜即使是行

       "python.pythonPath": "c:/python27/python.exe",
    
    可以安全地删除from settings.json

    注意:在我的MacOS vscode上没有发生