-1

I am following a python course in which the instructor is downloading extensions on vs code. After they add the python extension, there is something that pops up prompting him to download pylint. He says to first switch the version from python 2 to the latest version. For him, there is a button in the bottom left hand corner that shows the version, but for me there is no such button. Can someome help?

I tried looking up other ways to change the version but I couldn't find any. I was expecting for there to be a button to change versions.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
  • 2
    Did you install the [official Python extension for VS Code](https://marketplace.visualstudio.com/items?itemName=ms-python.python) and followed the [steps in the VS Code tutorials to configure your Python environments](https://code.visualstudio.com/docs/languages/python#_environments)? – Gino Mempin Aug 04 '23 at 02:20
  • 1
    This is probably a duplicate of: [How can I change the Python version in Visual Studio Code?](https://stackoverflow.com/q/48135624/2745495) – Gino Mempin Aug 04 '23 at 02:23
  • 1
    https://code.visualstudio.com/docs/python/environments – tdelaney Aug 04 '23 at 02:38

2 Answers2

-1

Open the Command Palette, type Python: Select Interpreter

Then use the File Explorer to select a Python executable on your machine you want to use.

He says to first switch the version from python 2 to the latest version

Python 2 shouldn't even be an option; it's end-of-life and wouldn't be installed on a modern system or fresh Python installation.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
-1

It's on the bottom right corner for me see screenshot. If you click it it will show the option to select the python interpreter.

You can run this simple code to see which python env is being used

import sys
print(sys.executable)
  • I figured out that all I had to do was to click "run and debug code" and for some reason the version switcher suddenly appeared. The code you provided didn't seem to show me any python version however it does not matter now since I fixed my problem, thanks! – ni30or4 Aug 04 '23 at 21:24