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..." message last forever
Gets stuck at "Python extension loading" then extension host crashes when `telemetry.enableTelemetry` is set to `false`
Python Extension loading issues
Please have a look at this issue: Python extension loads very slowly: unresponsive. Try insiders version of the extension, and see if it helps with this issue. You can always download and install latest insiders build form here https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix .
More on reddit.comPython extension loading... forever
Videos
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?
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)
(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