简体   繁体   English

python launch.json 文件未通过

[英]python launch.json file not passing

enter image description here在此处输入图片说明

I upgraded from python 3.10 to pyton 3.9 and got this error what is the solution我从 python 3.10 升级到 pyton 3.9 并收到此错误解决方案是什么

You can downgrade the version of the Python extension to solve it such as v2021.10.1317843341 .你可以降级Python扩展的版本来解决,比如v2021.10.1317843341

Or you can edit或者你可以编辑

"when": "!virtualWorkspace && shellExecutionSupported"

to

"when": "!virtualWorkspace"

in vscode-python/package.json at the line of 1496 .vscode-python/package.json中的1496行。

Some people have run across the same problem, you can refer to here and here for more information.有些人遇到了同样的问题,你可以参考这里这里了解更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM