Home > Enterprise >  Add older Python version to Visual Studio
Add older Python version to Visual Studio

Time:06-06

My Visual Studio 2022 is equipped with Python 3.9 x64. I would like to add Python 3.8, but Visual Studio Installer only has 3.9 version x64 or x32 as options. Can I add an older Python version to Visual Studio? Maybe install an interpreter separately and then bind it to VS somehow?

CodePudding user response:

You might want to use a virtual environment to use with your project for example using

conda create -n env-01 python=3.9 scipy=0.15.0 astroid babel

Here you can find the documentation of using virtual environments in visual studio: https://docs.microsoft.com/en-us/visualstudio/python/managing-python-environments-in-visual-studio?view=vs-2022

CodePudding user response:

You can install the preferable python version on your system and follow the steps below:-

  1. Launch your python project in vscode
  2. Click on the python interpreter on lower left corner Python Interpreter Indicator
  3. Select the python version/path you'd like to use Python Interpreter options
  4. Done
  • Related