I’m trying to get PySimpleGui up and running in VS Code. I installed it using Pip. If I list the installed pip modules with python -m pip list, PySimpleGui version 4.60.3 is right there in the list. I found the file location and added it to the extensions path in settings. I upgraded Pip to the latest version and tried again. This is everything I can find on Stack Overflow to do with this issue - I’m still getting “ModuleNotFound error” with the PySimpleGui module when I try and run my code.
Did you run the code and try refreshing VS Code? Or is it just showing red lines below. Try running the Developer: Reload Window command. This has happened to me many times. It usually works when I do one of these.
Not a bad idea, but I think I’ve found the problem. I tried a different library and it didn’t work either with the same error, so I went to check the Python Interpreter and VS Code seems to have reverted it back to the default windows interpreter at some point, which I don’t usually use. I changed the interpreter and (fingers crossed) looks like it’s working now.