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:

  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).
Answer from JialeDu on Stack Overflow
🌐
Reddit
reddit.com › r/vscode › python extensions not working
r/vscode on Reddit: python extensions not working
October 28, 2023 -

I have a virtualbox VM, and this vm shares a folder with my actual pc. This folder is what contains all the code. I have vscode on my actual pc to edit that folder's contents, but the code runs on the VM.

The VM is ubuntu 20.04, my actual pc is Windows 10, and the VM's python version is 3.8.10

yesterday, vscode suddenly started crashing. The icon turned into the default windows exe file icon, and whenever I close it, an error window appears. Back then I didn't think much of it, but on second thought, I should have saved that error message. Anyways, I thought that reinstalling vscode would work. After reinstalling, my old extensions are already installed for some reason, but they aren't working. The highlighting and autocomplete functions aren't working, and would display "Loading..." when I hover over stuff:

the field names should be blue, the "models." stuff should be green, and it should not say "Loading..."

I found a stackoverflow post with a similar issue: https://stackoverflow.com/questions/50389852/visual-studio-code-intellisense-not-working

The post doesn't seem to have a solution, but I tried most of their suggestions. I tried reinstalling the extensions, changing them to pre-release, uninstalling pylance, etc. to no avail. Some replies talked about the path to the python executable, but I feel like that doesn't really apply in my case, since even though I have python on my actual pc, all the code is ran by the python executable on the VM. In any case, I still selected an interpreter at the bottom right of the screen.

Here are my current extensions:

Here is my current settings.json:

A friend suggested looking at the logs for python language server, and there indeed seems to be an error every time I open vscode, though I'm not sure what's causing this:

at the end of my ropes here, so any help is greatly appreciated. Please let me know if you need more information.

Discussions

Python extensions do not work after updating to the latest version of VS Code Insiders
Does this issue occur when all extensions are disabled?: No VS Code Version: 1.75.0-insider (system setup) (4acf2d9) OS Version: Windows 11 Pro Insider Preview (Dev Channel) Build 25267.1000 Steps ... More on github.com
🌐 github.com
3
January 4, 2023
Python extension is failing to load
Type: Bug Everything was working until yesterday then after some auto updates on my Linux system, python extension is no more loading in VS Code. I tried by creating new conda environment but still facing same issue. I can use/switch con... More on github.com
🌐 github.com
15
August 16, 2024
Unable to install python extension from visual studio code
I'm trying to add the python extension from the visual studio code, at the bottom right it says "Error while installing 'Python' extension. Please check the log for more details" - under it says "try to download manually" which sends… More on learn.microsoft.com
🌐 learn.microsoft.com
4
5
January 25, 2023
Extension doesn't load
Environment data VS Code version: 1.33.1 Extension version (available under the Extensions sidebar): 2019.4.11881 OS and version: 5.0.7-1-MANJARO Python version (& distribution if applicable, e... More on github.com
🌐 github.com
33
April 24, 2019
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
[SOLVED] VS Code, after upgrading: Python extension fails to load...? / Applications & Desktop Environments / Arch Linux Forums
Something about it: https://code.visualstudio.com/api/advan … oposed-api https://wiki.archlinux.org/title/Visual_Studio_Code and search on site for "proposed" You can do alias for "code --enable-proposed-api ms-python.python" if it works and you don't want to install anything more for code. ... @xerxes_: Oh, thanks a lot. I didn't understand all of this, suddenly VS code seems very complicated. But as I understand it, I should just install code-features / https://aur.archlinux.org/packages/code-features, because a user a few weeks ago wrote: I've only needed to install this now with the upgrade to vscode v1.74 because of the python extension issue.
🌐
GitHub
github.com › microsoft › vscode-python › issues › 23956
Python extension is failing to load · Issue #23956 · microsoft/vscode-python
August 16, 2024 - (/home/test_user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1962428) at process.processImmediate (node:internal/timers:478:21)] { code: -4, data: undefined } 2024-08-16 12:49:40.151 [error] [ 'Failed to activate a workspace, Class name = m, completed in 401ms, has a falsy return value, Arg 1: Uri:/home/test_user/source/test_prod/test_project/env, Arg 2: {"started":1723808979277}, Return Value: undefined', [s [Error]: Failed to resolve env "/home/test_user/anaconda3/envs/test_project" at ae (/home/test_user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1968174) at oe (/home/test_user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:1966134) at Immediate.
Author   gurmitteotia
🌐
Visual Studio Code
code.visualstudio.com › docs › languages › python
Python in Visual Studio Code
November 3, 2021 - To enable Python support for Jupyter notebook files (.ipynb) in VS Code, you can install the Jupyter extension. The Python and Jupyter extensions work together to give you a great Notebook experience in VS Code, providing you the ability to directly view and modify code cells with IntelliSense support, as well as run and debug them.
Find elsewhere
🌐
GitHub
github.com › microsoft › vscode-python › issues › 5437
Extension doesn't load · Issue #5437 · microsoft/vscode-python
April 24, 2019 - _logMessageInConsole @ extensionService.ts:800 console.ts:134 [Extension Host] Activating extension `ms-python.python` failed: Unexpected token } in JSON at position 2364 t.log @ console.ts:134 console.ts:134 [Extension Host] Here is the error stack: SyntaxError: Unexpected token } in JSON at position 2364 at JSON.parse (<anonymous>) at d (/home/mkx/.vscode/extensions/ms-python.python-2019.4.11881/out/client/extension.js:1:39446) at Object.module.exports.Object.defineProperty.value (/home/mkx/.vscode/extensions/ms-python.python-2019.4.11881/out/client/extension.js:1:39801) at n (/home/mkx/.vsc
Author   emkaix
🌐
GitHub
github.com › microsoft › vscode-python › issues › 16026
"Python extension loading..." message lasts forever · Issue #16026 · microsoft/vscode-python
April 23, 2021 - I searched for this error and it was solved with newer version of the Python extension. Though, I have the newest versions installed and still have this problem. Environment data VS Code version: 1.55.2 Extension version (available under...
Author   brkbrc
🌐
GitHub
github.com › microsoft › vscode-python › issues › 14977
Gets stuck at "Python extension loading" then extension host crashes when `telemetry.enableTelemetry` is set to `false` · Issue #14977 · microsoft/vscode-python
December 15, 2020 - recreating %userprofile%.vscode · recreating %appdata%\Code · Updating python to 3.91 · Enabling only the Python extension · Total output of OUTPUT > Python. Extension host crashes after it sits at this for a while. Info 2020-12-15 16:12:53: Searching for workspace virtual envs in: d:\users\ben\Documents\advent-of-code-2020 Info 2020-12-15 16:12:53: Searching for workspace virtual envs in: d:\users\ben\Documents\advent-of-code-2020\.direnv Info 2020-12-15 16:12:53: Searching for global virtual envs in: C:\Users\Ben\Envs Info 2020-12-15 16:12:53: Searching for global virtual envs in: C:\Use
Author   GSGBen
🌐
Reddit
reddit.com › r/vscode › python extension not working
r/vscode on Reddit: Python Extension not working
October 16, 2021 -

When I attempt to install the python extension it gives the following error:

"Cannot activate the 'Pylance' extension because it depends on the 'Python' extension which is not supported in the current workspace"

any suggestions? I think it may have to do with workspace trust but I don't know what to do

Edit: Python extension works until I connect to a remote workspace. Is this a bug or is this how its supposed to work?

🌐
GitHub
github.com › Microsoft › vscode-python › issues › 25318
Python Extension fails to run scripts due to AppLocker + Native Locator + pet.exe spawn error after auto-update to v2025.10.1 · Issue #25318 · microsoft/vscode-python
July 23, 2025 - This issue started after the Python extension auto-updated to v2025.10.1. From that point on, the extension appeared to enter an infinite loop trying to locate virtual environments. Changing the python.experiments.optInto or python.experiments.enabled settings had no effect. Also, switching the Python: Environment Locator setting from Native to JavaScript (js) did not resolve the issue in this version. ... After this, the play button worked again as expected and it fixed the infinite search loop.
Author   nilbest
🌐
GitHub
github.com › microsoft › vscode-python › issues › 14179
Extension does not load · Issue #14179 · microsoft/vscode-python
September 30, 2020 - Issue Type: Performance Issue There is always a problem in loading the extension whenever I open my VS Code. Extension version: 2020.9.112786 VS Code version: Code 1.49.2 (e5e9e69aed6e1984f7499b7af...
Published   Sep 30, 2020
🌐
GitHub
github.com › microsoft › vscode-python › issues › 22035
Python extensions not working · Issue #22035 · microsoft/vscode-python
September 18, 2023 - We keep trying to run our programs and it's telling us that the Python extensions are not installed, even though each student has installed them. When I click the message in the bottom right corner that says "Select Python Interpreter", our command palette says "Python is not installed".
Author   dljungberg22
🌐
GitHub
github.com › microsoft › vscode-python › issues
Issues · microsoft/vscode-python
microsoft / vscode-python Public forked from DonJayamanne/pythonVSCode · Notifications · You must be signed in to change notification settings · Fork 1.3k · Star 4.6k · NEW: Multi-project testing · #25789 · eleanorjboyd opened · on Feb 10, 2026 · Terminal no longer auto-activating ·
Author   microsoft
🌐
Reddit
reddit.com › r/vscode › issues loading python extension
r/vscode on Reddit: Issues Loading Python Extension
September 2, 2020 -

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.

🌐
GitHub
github.com › microsoft › vscode-python › discussions › 24285
Unable to install Extension on vscode-server because it is not compatible · microsoft/vscode-python · Discussion #24285
I am receiving the error: Can't install 'ms-python.python' extension because it is not compatible with the current version of Visual Studio Code (version 1.93.1). It worked for the last week and yesterday i got the problem the first time. I did no update or anything else.. So the Extension was for some reason not at the server anymore.. I tried different versions of VSCode...
Author   microsoft
🌐
GitHub
github.com › microsoft › vscode-python › issues › 5599
Python extension does not load, stuck at `Python extension loading` · Issue #5599 · microsoft/vscode-python
May 10, 2019 - unfortunately this issue has not been completely fixed: I just updated to the latest vscode: Version 1.33.1 (1.33.1) and the "Python extension loading" has been stuck for the last 3 hours, and I am staring at my source code. None of the ...
Published   May 10, 2019
Author   cmartinio