I pip installed PyQt5, and verified this in my CMD with pip show PyQt5
which gave me:
C:\Users\92175>pip show PyQt5
Name: PyQt5
Version: 5.15.0
Summary: Python bindings for the Qt cross platform application toolkit
Home-page: https://www.riverbankcomputing.com/software/pyqt/
Author: Riverbank Computing Limited
Author-email: info@riverbankcomputing.com
License: GPL v3
Location: c:\python\python37-32\lib\site-packages
Requires: PyQt5-sip
Required-by:
When I run my code in PyCharm, from PyQt5 import QtWidgets, QtCore, QtGui...
I get the error
ModuleNotFoundError: No module named 'PyQt5'
I saw the same question in another place: ImportError: No module named PytQt5 however this is a little different since I'm neither using Ubuntu nor bash
.
Do I need to bother my IT guy and ask him to help me modify PYTHONPATH
? (I think admin rights are required for this). If so, how should I do this? Or is there a way to direct PyCharm to the location of PyQt5 from within my code?