2

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

Sören
  • 1,803
  • 2
  • 16
  • 23
Archode
  • 37
  • 1
  • 8
  • 4
    Check your PATH system environment variable. Probably there's path to old python folder set – Rafael Apr 12 '22 at 09:43
  • can you tell me about path system environment and why 3.7.3 still work in vscode because i uninstall it from control pannel. – Archode Apr 12 '22 at 09:50
  • If you're referring to the interpreter you can set the default interpreter path in the user settings: user settings > extensions > python > default interpreter – ChaddRobertson Apr 12 '22 at 10:19
  • As shown in the interface, select the first one to modify the python version in vscode. – MingJie-MSFT Apr 13 '22 at 07:00

1 Answers1

1

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.

berk
  • 34
  • 3
  • ok now vscode using 3.10 but how to uninstall 3.7 in vscode ? I don't want 3.7 anymore. and what is this 3.7.3 global you can see it in the pic I uploaded. – Archode Apr 12 '22 at 10:00
  • go to command palette and wrote Python: Clear Workspace Interpreter Setting Python: Reset Stored Info for Untrusted Interpreters – berk Apr 12 '22 at 10:09
  • 1
    user settings: user settings > extensions > python > default interprete, at the end it is \pythonw.exe. – Archode Apr 14 '22 at 07:12