close

How can I change the Python version in Visual Studio Code?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How can I change the Python version in Visual Studio Code in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How can I change the Python version in Visual Studio Code?

  1. How can I change the Python version in Visual Studio Code?

    Under the view menu select 'show command pallet'. One of the commands you can then select from the command palette is 'Python: Select Interpreter'. Selecting this option will allow you to choose which version of python to use.

  2. I change the Python version in Visual Studio Code

    Under the view menu select 'show command pallet'. One of the commands you can then select from the command palette is 'Python: Select Interpreter'. Selecting this option will allow you to choose which version of python to use.

Method 1

Under the view menu select ‘show command pallet’. One of the commands you can then select from the command palette is ‘Python: Select Interpreter’. Selecting this option will allow you to choose which version of python to use.

Method 2

Tot’s answer is what worked for me on windows 10, with a few modifications.

  1. File -> Preferences -> Settings
  2. Type in “python.pythonPath” in the search bar.
  3. Change it to what you normally run python with from the command line. If you have your Path environment variable set, that’s just python. If not, it’s likely the full path to the executable.

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read