Please update the python extension to the latest version

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

this will basically solve your problem.
If the error continues, follow these steps:
Answer from JialeDu on Stack Overflow
- Uninstall Python extension (if you have pylance uninstall it first). Uninstall any other extension that is failing.
- 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 update the python extension to the latest version

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

this will basically solve your problem.
If the error continues, follow these steps:
- Uninstall Python extension (if you have pylance uninstall it first). Uninstall any other extension that is failing.
- 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).
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
- Step 1. Install a supported version of Python on your system (note: that the system install of Python on macOS is not supported).
- Step 2. Install the Python extension for Visual Studio Code.
- Step 3. Open or create a Python file and start coding!
Python extension loading...
Gets stuck at "Python extension loading" then extension host crashes when `telemetry.enableTelemetry` is set to `false`
Unable to install python extension from visual studio code
"Python extension loading..." message last forever
Videos
FIX: I fixed it! turns out i didn't completely remove vscode from my pc, so i deleted the config and cache folders and reinstalled vscode and it works perfectly now! still curious as to what the hell caused it...
at the bottom left of vscode it keeps saying "Python extension loading" and it never finishes, i tried reinstalling all the extensions, updating vscode, rebooting the system, and disabling the other extensions one by one, but to no avail.
it was working fine before, any help would be appreciated!
EDIT: im using linux (kubuntu 20.04) and i can't do anything python related (run scripts, formatters not working...etc)
I'm having a problem where the python extension has a very long loading time. I've tried unistalling and reinstalling but that hasn't worked. Any advice on what to do?
These steps solved my issue:
- Open VS Code
Settings - search for
Python Locator - switch from
nativetojs. - restart the vs code

Same problem here...the link below solved it for me.
- In VS Code, type Ctrl + Shift + P
- Type Python: Clear Cache
- Select option Python: Clear Cache and Reload Window
https://github.com/microsoft/vscode-python/issues/23922#issuecomment-2523255885
(Posted solution on behalf of the question author).
OK - I deleted the VS Code profile folder
'%APPDATA%\Roaming\Code
and installed fresh extension along with miniconda, and it is working fine.
This seems to be an annoying problem that is caused by other extensions. Best way I fixed mine was:
- To disable all the extensions
- Enable ms-python extension
- Reload vs-code and voila, it's all fixed
I'm starting to mess around with python again in my free time and I'm having issues with the python extension. I only have 3 extensions installed. C#, PowerShell, & Python. All from Microsoft. I've uninstalled/reinstalled VS Code. I'm running 3.8.5 python.
When I try to add python (control + shift + p) it spins at loading the extension and comes back with reload, wait, or cancel. If you hit wait afew times, it will eventually load the python extension. The machine is an i7 4xxx, 32 gb of ram, ssd, ect.... I'm seeing no CPU, RAM, or Disk spikes during this time.
Has anyone seen anything like this before? Is there anything in the event viewer log that would help?
*** EDIT ***
I also tried it with the other extensions disabled.
» npm install @vscode/python-extension
Note that telemetry.enableTelemetry as described in the original answer has been deprecated. Please use this instead:
"telemetry.telemetryLevel": "all|error|crash|off"
Original answer
Try to disable telemetry in the user settings:
"telemetry.enableTelemetry": false
Change back to an older version, I'm also having this issue, I switched back to the older version and now its fixed.