I'm trying to learn how to use PyQT5. I created a new folder under my user profile and spun up a virtualenv (and installed PyQT5 from pip3) in a folder called env. I created the project in another folder called guis and pointed PyCharm to the env environment. Pycharm can't find the submodules but sees PyQT5.QtWidgets just fine.
env
guis
PyQT5.QtWidgets
Screnshot:
I got it to work by removing PyQT5 from
Settings > Project > Project Interpreter
and reinstalling it within PyCharm.
Restart PyCharm afterwards.
1.4m articles
1.4m replys
5 comments
57.0k users