代码之家  ›  专栏  ›  技术社区  ›  Flying Thunder

无法运行PyQt5

  •  0
  • Flying Thunder  · 技术社区  · 8 年前

    https://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.6/

    当运行任何示例脚本时,我都会得到一个 module not found 错误如下:

    File "C:\Program Files (x86)\Python36-32\Lib\site-packages\PyQt5\examples\dialogs\classwizard\classwizard.py", line 45, in <module>
    from PyQt5.QtCore import QDir, QFile, QRegExp
    ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.`
    

    我阅读了这篇文章并添加了env变量: PyQt5 module cant be found after installing PyQt5 with Installer

    可能是因为我使用的是Python 3.6.5。安装程序是针对Python3.5的吗?或者我需要安装其他的东西吗?我对此表示怀疑,因为安装程序说它安装了PyQt、Qt和其他工具。

    0 回复  |  直到 8 年前