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
Error
CodePudding user response:
First, Python version 3.10.4 is not the problem. I just installed and tested it with the the following versions:
Windows: 10.0.19044 x64
Python: 3.10.4 x64 bit
Jupyter Notebook server: v6.4.10
Jupyter Lab: v3.3.2
VS Code Version: v1.65.2 x64 ZIP (portable)
VS Code Python Ext (Microsoft): v2022.2.0
VS Code Jupyter Notebook Ext: v2022.2.1030672458
Second, your problem description is too general for a pinpoint solution so let's do it the hard way:
Completely uninstall Python and VS Code. Use an uninstaller like
Empty the globalStorage
and workspaceStorage
folder.