VS Code shows the wrong Python version for my venv
1568 views
Terminal shows Python 3.12 when I activate my venv manually, but the Run button uses 3.10. I selected the interpreter in the bottom right and it still reverts.
Good, that is the right place. Set the interpreter to /home/you/project/.venv/bin/python explicitly and reload the window. Select Interpreter stores a per-workspace path and sometimes loses it after a WSL restart.
3 replies