Hi, I've been trying to solve this problem with VScode for 2 days:
"ModuleNotFoundError: No module named 'PyQt5.QtWidgets'; 'PyQt5' is not a package".
Of course PyQt5 5.15.6 and Python 3.9.5 pip 21.3.1 are installed.
I've tried everything, searched the internet but nothing to do.
What's strange is that from the Python 3.9.5 shell
I enter 'import PyQt5' and it imports it without problems, but in VScode it gives me the message above.
I think the problem is VScode. Any ideas?
Thanks a lot!
ps
Same example. In the Python shell it works in VScode it doesn't.
"ModuleNotFoundError: No module named 'PyQt5.QtWidgets'; 'PyQt5' is not a package".
Of course PyQt5 5.15.6 and Python 3.9.5 pip 21.3.1 are installed.
I've tried everything, searched the internet but nothing to do.
What's strange is that from the Python 3.9.5 shell
I enter 'import PyQt5' and it imports it without problems, but in VScode it gives me the message above.
I think the problem is VScode. Any ideas?
Thanks a lot!
ps
Same example. In the Python shell it works in VScode it doesn't.