简体   繁体   English

vscode 中的 python.defaultInterpreterPath 显示为“未知配置设置”

[英]python.defaultInterpreterPath in vscode shows as "unkonwn configuration setting"

The old python.pythonPath has been deprecated in the latest vscode 1.64.1 and replaced by python.defaultInterpreterPath .旧的python.pythonPath已在最新的vscode 1.64.1 中被弃用,取而代之的是python.defaultInterpreterPath However, when I set it in projectname/.vscode/settings.json , it is greyed and shown a popup as:但是,当我在projectname/.vscode/settings.json中设置它时,它是灰色的并显示一个弹出窗口:

unkonwn configuration setting未知的配置设置

This still persists even after restarting vscode.即使在重新启动 vscode 后,这种情况仍然存在。

Anyone can shed some light on this issue?任何人都可以对这个问题有所了解吗?

Thanks谢谢

It may be solved now, or just remember to avoid using the "settings" key again, within a settings.json file, but a single dict, eg:现在可能已经解决了,或者只记得避免在settings.json文件中再次使用“设置”键,而是使用单个字典,例如:

{
  "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python"
}

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

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