Russiahacker
Russiahacker

Reputation: 79

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.

Upvotes: 5

Views: 28307

Answers (3)

Q-Tip
Q-Tip

Reputation: 113

I was having this issue and tried the above answer and it still didn't work. It turns out I hadn't installed python on my system yet. I didn't realize because I normally use it remotely.

From the VSCode documentation:

Quick start

Upvotes: 0

Nicolas Albornoz
Nicolas Albornoz

Reputation: 1

Just uninstall all unverified Python extensions and reinstall the Python extension developed by Microsoft.

Upvotes: 0

JialeDu
JialeDu

Reputation: 9923

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).

Upvotes: 18

Related Questions