简体   繁体   English

pip安装后出现“ ModuleNotFoundError:没有名为“ PyQt5”的模块”

[英]“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. 我正在尝试从命令窗口运行python脚本,但是每次尝试运行它时,都会出现此错误。

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. 我不知道为什么要得到这个,因为当我检查Python36\\Lib\\site-packages\\PyQt5就在那里。 I installed it using pip from the command window. 我从命令窗口使用pip安装了它。 I did the same thing with pytz and I'm not having any problems with that. 我用pytz做过同样的事情, pytz我没有任何问题。

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. PyQt5适用于Python 3.4(最好是3.4.4),看来您正在运行Python 3.6。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PyQt5:ModuleNotFoundError:没有名为“PyQt5”的模块 - PyQt5: ModuleNotFoundError: No module named 'PyQt5' ModuleNotFoundError: 没有命名模块<modulename> pip安装后 - ModuleNotFoundError: No module named <modulename> after pip install ModuleNotFoundError:pip安装后没有名为“请求”的模块 - ModuleNotFoundError: No module named 'requests' after pip install ModuleNotFoundError:没有名为“PyQt5”的模块 - Windows PyCharm - ModuleNotFoundError: No module named 'PyQt5' - Windows PyCharm PyCharm 错误,ModuleNotFoundError:没有名为“PyQt5”的模块 - PyCharm Error, ModuleNotFoundError: No module named 'PyQt5' PyQt5和Anaconda:ModuleNotFoundError:没有名为“ PyQt5”的模块 - PyQt5 and Anaconda: ModuleNotFoundError: No module named 'PyQt5' ModuleNotFoundError:使用“pip install numpy”后没有名为“numpy”的模块 - ModuleNotFoundError: No module named 'numpy' after using 'pip install numpy' ModuleNotFoundError:在pip安装pyserial之后,没有名为“ serial”的模块 - ModuleNotFoundError: No module named 'serial' after pip install pyserial ModuleNotFoundError: 执行 pip install xyz 后没有名为“xyz”的模块 - ModuleNotFoundError: No module named 'xyz' " after doing pip install xyz ModuleNotFoundError:即使在“pip install translate”之后,也没有名为“translate”的模块 - ModuleNotFoundError: No module named 'translate' , even after "pip install translate"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM