Home > Software engineering >  I have python 3.10 but my vscode shell say that i am in 2.7
I have python 3.10 but my vscode shell say that i am in 2.7

Time:06-03

i just installed python 3.10 on my computer (with Ubuntu OS) but when i do the $ python --version commend of my vscode shell it says that i am in 2.7.17, is there a commend to change it to 3.10 ?

vs code clearly says that my code is running in 3.10 as you can see , i don't understand

CodePudding user response:

On ubuntu, python sometimes defaults to the 2.x version, while you have to explicitly write python3 to use the 3.x version

CodePudding user response:

You could use Python IDE like Pycharm so it would be easier to specify python version to use project by project

  • Related