Visual Studio代码Python扩展错误

Bak*_*kax 3 python visual-studio-code

Activating extension 'ms-python.python' failed: command 'python.viewOutput' already exists.
workbench.desktop.main.js:2350 Cannot activate the 'Pylance' extension because its dependency 'Python' failed to activate
Run Code Online (Sandbox Code Playgroud)

我尝试使用 vscode 编辑 python 文件,它显示扩展激活失败

ali*_*lio 8

尝试在 VSCode 中禁用所有其他 python 扩展。我遇到了同样的问题,因为不同的 Python VS 扩展与官方扩展冲突。这是一个可能可以为您提供更详细帮助的链接。

如果不了解有关您的设置的更多信息,则很难为此类问题提供更具体的答案。

编辑:如果您需要更多详细信息,请查看此答案的评论线程