pythonvisual-studio-codeloading

How would I fix the issue of the python extension loading and Extension activation failed messages appearing?


enter image description here enter image description here

I keep on getting these messages on the bottom right corner of my screen when opening up VS code. Any idea on how to get rid of it?

I can still write code and run the code fine but I don't understand why this is happening.

I've tried by deleting the python extension and anything related to python in the video extensions tab, but no luck.


Solution

  • Please update the python extension to the latest version

    enter image description here

    or install the pre-release version directly. ( may be more useful to you )

    enter image description here

    this will basically solve your problem.

    If the error continues, follow these steps:

    1. Uninstall Python extension (if you have pylance uninstall it first). Uninstall any other extension that is failing.
    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).