Visual Studio Code Using wrong Python Version--correct version does not show up

Viewed 576

I'm running VSCode on a Linux machine. In the terminal, my Python version is 3.10.1, with the path /usr/bin/python.
Terminal Output 1

However, in VSCode, it only shows Python 3.9.9, but with the same path. VSCode Select Interpreter

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.

2 Answers

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.

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.

Related