Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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? #17393

Closed
980202006 opened this issue Sep 13, 2021 · 2 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@980202006
Copy link

No description provided.

@980202006 980202006 added bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team labels Sep 13, 2021
@980202006
Copy link
Author

Python and pylance have been installed. It was able to run a few days ago, but suddenly it can’t be run today

@karthiknadig
Copy link
Member

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.

@karthiknadig karthiknadig removed the triage-needed Needs assignment to the proper sub-team label Sep 13, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants