why vscode automatically get python version 3.7.3 instead of 3.10.4?

4.3k views Asked by At

I uninstall python 3.7.3 64-bit and installed python 3.10.4 64-bit on windows. but every time I launch vscode it automatically gets the 3.7.3 version even after I uninstall it. and it shows python 3.7.3 global. after uninstalling 3.7.3 from the control panel it still works in vscode I don't know why?

enter image description here

1

There are 1 answers

3
berk On

Firstly find path of python310.exe (name can be different) it is in Python3.10 folder after that go VsCode . Click Settings Choose User > Extensions>Python > Python Path . Remember the path is not complete. So, add “\python.exe” in the end.