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).
Recently updated my laptop, and after installing VS Code and Python on the new machine, I've noticed that the Python extension takes forever to load any time VS Code is (re)started. I haven't timed it exactly, but probably at least a minute or more, just to load an extension on a 'gaming' laptop with oodles (technical term!) of RAM, disk space, and processor power to spare.
Nothing particularly exotic as far as extensions loaded - Python (obviously), Pylance, Jupyter, Remote - WSL, Vim, Visual Studio Intellicode and vs-code icons. Even with everything disabled but Python, Pylance and Jupyter, it doesn't change - and the extension very obviously holding things up is the Python one.
Nothing too exotic about the Python install... vanilla 3.8.6, from python.org, using virtualenvs for development. Even with the base install, and nothing much beyond pylint, black and virtualenvwrapper-win installed via pip... this seems really, really, really odd.
Any ideas?
visual studio code - How would I fix the issue of the python extension loading and Extension activation failed messages appearing? - Stack Overflow
VScode extremely slow with Pylance and Python
"Python extension loading..." message last forever
Python extension very slow to load
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!
Small (less than 10MiB) size case
- Open plain
.pyfile in same VSCode window. - Close all notebooks.
- Open your notebooks again.
Bigger size case
First of all, I suggest you to wait a bit - due to VSCode extensions render overhead, loading the notebook may took times more time than in your browser. If it doesn't help in adequate time:
- Open the notebook in browser.
- Clear all its outputs.
- Reload VSCode window (e.g. using Command Pallette:
Ctrl+Shift+P->Reload Window)
When I reopened VS Code and immediately opened "Interactive", I also encountered the same problem, sometimes it could not be opened, sometimes it was very slow.
Reason: In VS Code, Since the "Interactive" function is provided by the extension "python", it needs to load the extension "python", then start this function and execute the code.
Solution:
It is recommended that you create or open a python file (.py file) after opening VS Code, wait for the extension and language service to load, and then open and use the "Interactive" function. In addition, in order to shorten the loading time, please disable VS Code extensions that you don't need to use and ensure a good network.
If all the required items are loaded but the "Interactive" window is still open and running slowly, please try to close other applications on the computer and reload or restart VSCode.
Github link: "Python extension loading" super slow.
(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 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?