首页 > 解决方案 > No Module Name 'pyqtgraph.graphicsItems.PlotItem.plotConfigTemplate_pyqt5' while executing exe

问题描述

ModuleNotFoundError: No module named 'pyqtgraph.graphicsItems.PlotItem.plotConfigTemplate_pyqt5'
[13260] Failed to execute script main

provided by this error when executing an exe created using pyinstaller, i have tried using --hidden-import but it still does not work.

标签: pythonpyqtpyqt5pyinstallerpyqtgraph

解决方案


这可能是由于

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

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

将 pyqtgraph 回滚到 0.11 对我有用。


推荐阅读