skip to Main Content

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.

2

Answers


  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.

    Login or Signup to reply.
  2. 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)
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search