In VSCode, you need to specify the Workspace that you intend to use to run using particular Python version.
Press "Ctrl+Shift+P" and type "Interpreter" and select "Python: Select Workspace Interpreter"
This will list the different versions installed on your machine. Select what you want.
From STACK OVERFLOW
时间: 2024-08-01 13:10:34