I made a totally new, blank environment in anaconda and activated it. I then did "conda install pyqt5", however when importing modules, like in
from PyQt5.QtWidgets import QApplication, QWidget
my script throws an error:
File "C:\xyz\xyz.py", line 2, in <module>
from PyQt5.QtWidgets import QApplication, QWidget
ModuleNotFoundError: No module named 'PyQt5'
As "conda list" did show pyqt5 installed, but "pip list" didn't, I did "conda remove pyqt5" and "pip install pyqt5", it shows up in both "list" commands now, but I still get the same error message...
Commenting out everything and adding just a one-line "print("Hello World!")" works, so I believe my problem is not rooted in the relationship of Anaconda with Python?!