This worked for me and maybe it will work for you:
- Open Command Palette:
- Press
Ctrl+Shift+P
(orCmd+Shift+P
on macOS).
- Select Python Interpreter:
- Search for
Python: Select Interpreter
. - A list of Python interpreters will appear. Select the one corresponding to your venv folder