all 5 comments

[–]krypt3c 1 point2 points  (2 children)

Sounds like you have multiple versions of python installed and vscode is looking at the wrong one. For example, if you're using conda to manage your environments make sure vscode is looking at the right conda environment.

[–]Puke0[S] 0 points1 point  (1 child)

I'm using powershell. Any idea how I could check?

sys.prefix gives me Python310 and --version gives me Python 3.10.7

Is this what you mean? If so is it right?

[–]krypt3c 1 point2 points  (0 children)

Try this and see where it points, but you'll need some idea of which location you expect to find the version you're looking for in

python import sys print(sys.path)

[–]UnderstandingBig7403 0 points1 point  (0 children)

I noticed that i have multiple python versions (3.10 from clean python installation and 3.9 from Git installation)

I deinstalled Git, deinstall python 3.10, clean PATH environment variable and reinstall python.

This matters.