How to set Python3 as default interpreter for VS code | default python version

preview_player
Показать описание
Want to run your python code with a particular python version, and make it the default version. Check this video.

Make sure that the required version is installed.
Go to the View menu and select Command Pallete
Search for Python and you will get all the installer versions of python
select the one you want.

Subscribe to my channel:
Twitter @iTwittt
Рекомендации по теме
Комментарии
Автор

Krishna, thank you very much for the explanation - Worked for me!

artemy
Автор

im using vs code on windows...when i change the interpreter version and run 'python --version' it always returns the base version no matter what the interpreter selected....example...in my Virtual env i have 3.10.12...but it returns base version 3.11.5....what could be the reason can you help pls?

gusfring
Автор

thank you for explaining, so i solved my problem.

orcefml
Автор

Hi, Krishna. I am sing VS code on Windows. I installed two versions of Python: 3.10 and 3.98. My issue is that there is no "version switcher" on the lower left. Could you tell me how to fix this problem?

yuhao