Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install previous version of Python extension for VSCode

I would like to install previous version of Python extension for VSCode (ms-python.python) to troubleshoot something, but when I am trying to use context menu with "Install another version..." I just have an error "server returned 404"

like image 631
Alexander Avatar asked Jun 10 '20 09:06

Alexander


People also ask

How do I install a previous version of an extension in VS Code?

VS Code provides an Install Another Version action on an installed extension which shows a dropdown of available versions. The option to install another version is in the context menu. Or the gear icon for each extension.

How do I go back to a previous version of VS Code?

I love using the command palette in VS Code to jump to a specific file. You can open the palette with the keyboard shortcut Cmd+P and then start typing for the name of the file you are looking for. This is great!

How do I install Python extensions in Visual Studio Code?

Install Python and the Python extension# For a quick install, use Python from python.org and install the extension from the VS Code Marketplace. Once you have a version of Python installed, activate it using the Python: Select Interpreter command.


Video Answer


2 Answers

You need to install it from a .vsix file. You can find them here.
Download the .vsix file of the version you want. You may have to click assets to see them.
Then open VSCode, go to extensions -> click on the three dots -> install from vsix and select your file.
To install the .vsix you can also use the command

code --install-extension ms-python-release.vsix

How to install from vsix

sources :
- How can I install Visual Studio Code extensions offline?
- https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix

like image 159
Lwi Avatar answered Nov 15 '22 00:11

Lwi


This can be done using "Install Another Version" option available with VS Code extension store.

  1. Go to extensions.
  2. Click on Gear Icon for the installed extension
  3. Click on Install Another Version
  4. And select the version you wish to install Select Version Option
like image 29
Rahul Chavan Avatar answered Nov 15 '22 00:11

Rahul Chavan