Search code examples
pythonvisual-studio-codeanacondapython-3.7

VS Code does not change python environment


I am using VS-Code and anaconda environment for python interpreter. I select the exact anaconda base environment by ctrl + shift + ` and it also reflects in the downside panel of vscode. But, when I checked the python version it shows my system's default python environment 3.7.9. If you see the below screenshot than, the anaconda environment is with 3.8.3.

Please give me solution, enter image description hereThank you.


Solution

  • To check & change vs code interpreter:

    • In top left menu bar Click view
    • In the dropdown menu, Click Command Palette
    • Click Python: Select Interpreter
    • Choose & Click on your desired Interpreter

    Another way to be sure to use anconda interpreter, open anaconda navigator and launch vs code from there.

    original vs code How-To