I am on Windows 10, running WSL Ubuntu as well. Visual Studio Code states that PyLance cannot resolve imports. My interpreter is the basic Python 3.11 .exe in Windows, not WSL.
In WSL, I have activated a virtual environment and installed packages, with NumPy as an example. When I run 'code .', Visual Studio Code opens as expected, but there are unresolved imports. I've worked for about 3 hours on this, uninstalling extensions and reinstalling, trying everything that ChatGPT could think of. Why does PyLance not see my imports? I'm not sure what other info anyone would need to be able to solve this, but I am happy to provide any.