简体   繁体   中英

“ModuleNotFoundError: No module named 'PyQt5'” after pip install

I'm trying to run a python script from the command window, but every time I try to run it I get this error.

C:\Users\TJ\Downloads\bovada-hand-history-converter-master\bovada-hand-history-converter-master>python app.py
Traceback (most recent call last):
  File "app.py", line 25, in <module>
    from gui import *
  File "C:\Users\TJ\Downloads\bovada-hand-history-converter-master\bovada-hand-history-converter-master\gui.py", line 9, in <module>
    from PyQt5 import QtCore, QtGui, QtWidgets
ModuleNotFoundError: No module named 'PyQt5'

I have no idea why I'm getting this, because when I check Python36\\Lib\\site-packages\\ , PyQt5 is right there. I installed it using pip from the command window. I did the same thing with pytz and I'm not having any problems with that.

If anyone thinks they know what's going on, let me know!

Thanks.

Your problem is with versions. PyQt5 is for Python 3.4 (preferably 3.4.4) and it seems you are running Python 3.6.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM