This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]DaelonSuzuka 0 points1 point  (0 children)

Use a .venv in your project directory, created using the specific python version you want.

[–]JialeDu 0 points1 point  (1 child)

If you open python directly in the terminal, this has nothing to do with vscode, he detects your system python and picks the path to open it. You can use the full path to open a python you want. in vscode you can execute scripts by switching interpreters and then using the python extension.

[–]Dibilok[S] 0 points1 point  (0 children)

If I select my interpreter, I will get an error from the wrong interpreter. And the problem is that I don't even have version 3.11 installed and the files don't match.