You can open VS Code command selector with ctrl + shift + p and type "Python: Select Interpreter" to open a dropdown menu of all available interpreters. Doing this should create the appropriate entry to settings.json (which was python.pythonPath for me with version Python plugin version v2021.8.1159798656)
You can also change the interpreter from the bottom toolbar.
python.pythonPath setting is deprecated. What is an alternative way to retrieve currently selected Python path? Any VSCode environment variables? I want to specify python path in task.json without explicit full path.
In VSCode, how can I get the path of currently selected Python?