'Visual Studio Code Using wrong Python Version--correct version does not show up
I'm running VSCode on a Linux machine. In the terminal, my Python version is 3.10.1, with the path /usr/bin/python.
However, in VSCode, it only shows Python 3.9.9, but with the same path.

Indeed, VSCode's built-in terminal also uses Python 3.9.9.
I have not yet found a way to fix this, such that Python 3.10.1 is available for use in VSCode.
Solution 1:[1]
Looks like the issue had to do with installing VSCode via Flatpak. I tried installing from the AUR instead, and it seems to be working as intended now.
Solution 2:[2]
I've been having the exact same problem. Fortunately, as I am currently using Fedora, the easy solution (the only one I've found) was to install the rpm package, as it is officially provided.
That's too bad! Specially because I try to use flatpaks whenever possible.
The only relevant source of information I've found was this discussion in Zorin's forum.
So If anyone in the future comes across this problem and reads this SO question, my advice up to now is (unfortunately) to just try another package format.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sharp104 |
| Solution 2 | igrvlhlb |
