Problem
My VSCode extension Python doesn't recognize the Python interpreter I have installed on the computer. I can use the terminal to run code but when I use Jupyter Notebook, it doesn't recognize it. I have tried many ways like finding questions on SO, searching the document, changing the path, changing the environment variables, reinstalling Python and the extension... But it seems useless. Before I upgraded to version 3.10.4, I still managed to use and the VSCode extension was still recognized. Any idea about my problem? Sorry for my bad English.
Error
Update:
I have reinstalled everything and it remained the same. But I have found an issue that when I typed python --version and python3 --version, it printed two different versions. I have deleted all Python 3.9.11 version folders before.






In VS Code, open the Settings with (Ctrl+,) then search settings for "Interpreter." There will an option for "Python: Default Interpreter Path." Set the location of your python.exe file.When you tried it, what happened?