Looks like you might have a bad update. Do the following to remove stale versions of the extension:
Uninstall Python extension (if you have pylance uninstall it first).
Close all instances of VS Code.
Go to, %USERPROFILE%/.vscode/extensions (on windows) or ~/.vscode/extensions on Linux/Mac.
Delete any folder with the name starting with ms-python.python*
Start VS Code, and install Python extension (also pylance if you uninstalled it in step 1).
本文介绍了解决VSCode中Python插件出现的更新问题的方法,包括卸载插件、清除旧版本文件及重新安装等步骤,适用于遇到Python插件无法正常工作的情况。

9849

被折叠的 条评论
为什么被折叠?



