Search code examples
pythonwindowspipmodulenotfounderrorpylance

Exception has occurred: ModuleNotFoundError even after pip install


I would like to use html2text in my python script, I've installed it via pip install html2text, and it is now in the %Roaming%\Python\Python310\Scripts.

I can also see it while checking what plugins I have installed and in the visual studio code it's green. However when I run the code this message appears:

This is how it looks in VS Studio Code


Solution

  • So I've found out the solution. It seemed to me like a bug and it was. I had somehow installed some extension from the Windows store - uninstall it, and you should be fine.