当前位置: 首页 > 工具软件 > Pylance > 使用案例 >

vscode远程error 无法激活 “Pylance“ 扩展, 因为它依赖于未加载的 “Python“ 扩展

谭志用
2023-12-01

无法激活 "Pylance" 扩展, 因为它依赖于未加载的 "Python" 扩展。是否要重新加载窗口以加载扩展名?

Looks like you might have a bad update. Do the following to remove stale versions of the extension:

  1. Uninstall Python extension (if you have pylance uninstall it first).
  2. Close all instances of VS Code.
  3. Go to, %USERPROFILE%/.vscode/extensions (on windows) or ~/.vscode/extensions on Linux/Mac.
  4. Delete any folder with the name starting with ms-python.python*
  5. 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 'Pylance' extension because it depends on the 'Python' extension, which is not loaded. Would you like to reload the window to load the extension? · Issue #17393 · microsoft/vscode-python · GitHub

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?

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? · Issue #15972 · microsoft/vscode-python · GitHub

 类似资料: