简体   繁体   中英

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 . However, when I set it in projectname/.vscode/settings.json , it is greyed and shown a popup as:

unkonwn configuration setting

This still persists even after restarting 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:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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