无法激活 "Pylance" 扩展, 因为它依赖于未加载的 "Python" 扩展。是否要重新加载窗口以加载扩展名?
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).
Please provide the extension version when you file the bug.
Cannot activate the 'Pylance' extension because it depends on the 'Python' extension, which is not loaded. Would you like to reload the window to load the extension?
Cannot activate the 'Python' extension because it depends on the 'Jupyter' extension, which is not loaded. Would you like to reload the window to load the extension?