Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Pylance 已启用,但无法正常工作,settings.json 文件中提到了 pylance
.vscode/settings.json:
{ "python.languageServer": "Pylance" }
Pylance 需要最新版本的 VS Code。
如果您打开集成终端,转到输出选项卡并从下拉列表中选择 Python 语言服务器,您可能会看到类似于“语言客户端需要 VS 代码版本 ^1.51.0 但收到版本 1.50.1”的错误消息如果是这样,将 VS Code 更新到最新版本可能会解决此问题。