python - 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.
解决方案
这可能是由于
- PyQt/pyqtgraph 库不兼容或
- pyqtgraph 版本 >=0.12 中的回归
您可以在 pyqtgrph 的 GitHub 页面上查看“Qt 绑定测试矩阵”,看看是否符合要求。就我而言,我使用的是通过测试的 python3.8 和 PyQt5-5.15。我仍然看到您报告的错误。
将 pyqtgraph 回滚到 0.11 对我有用。
推荐阅读
- java - 如何在java中使用递归反转数字序列
- statistics - 什么是对高度不平衡的数据集进行采样的正确方法,该数据集在特征相关性和类方差之间具有低水平?
- docker - 无法在 docker 上映射卷
- reactjs - 如何为 Gatsby StaticQuery Hook 创建片段?
- flutter - 提供'catchError'
- javascript - 使用对话框提示返回未定义
- python - Seaborn 热图顶行和底行被部分截断
- python - 在 Python 中使用 RegEx 进行拆分
- postgresql - PostgreSQL 单行查看同一张表的一组相关记录
- android - android studios中未解决的依赖错误。android studio的第一次用户