【问题标题】:No Module Name 'pyqtgraph.graphicsItems.PlotItem.plotConfigTemplate_pyqt5' while executing exe执行exe时没有模块名称'pyqtgraph.graphicsItems.PlotItem.plotConfigTemplate_pyqt5'
【发布时间】:2023-04-05 08:00:01
【问题描述】:
ModuleNotFoundError: No module named 'pyqtgraph.graphicsItems.PlotItem.plotConfigTemplate_pyqt5'
[13260] Failed to execute script main

执行使用 pyinstaller 创建的 exe 时出现此错误, 我已经尝试使用 --hidden-import 但它仍然不起作用。

【问题讨论】:

    标签: python pyqt pyqt5 pyinstaller pyqtgraph


    【解决方案1】:

    这可能是由于

    • 您的 PyQt/pyqtgraph 库不兼容或
    • pyqtgraph 版本 >=0.12 中的回归

    您可以在 pyqtgrph 的 GitHub 页面上查看“Qt 绑定测试矩阵”,看看您是否符合要求。就我而言,我使用的是通过测试的 python3.8 和 PyQt5-5.15。我还是看到了你报告的错误。

    将 pyqtgraph 回滚到 0.11 对我有用。

    【讨论】:

      猜你喜欢
      • 2022-08-16
      • 2018-09-04
      • 1970-01-01
      • 2021-11-18
      • 1970-01-01
      • 2017-05-19
      • 2020-07-14
      • 2022-01-26
      • 1970-01-01
      相关资源
      最近更新 更多