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!
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.
Python extensions do not work after updating to the latest version of VS Code Insiders
Python extension is failing to load
Unable to install python extension from visual studio code
Extension doesn't load
Videos
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?
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.
- Download the file "ms-python.python-xxxx.x.x.vsix" for manual installation. link (menu navigation 'Version History')
- Turn off the internet on your computer.
- Install the file "ms-python.python-хххх.х.х.vsix" through the menu "install from VSIX...".
It helped me.
If you install these extensions on vscode and it gives an error, change the net! I can install add-ons without problems with the first mobile net, but not with other nets (especially ADSL). If you don't have the first mobile note available, try F-Y-L-T-R Shekan with the same note.