【发布时间】:2022-08-16 01:08:01
【问题描述】:
No module named \'pyqtgraph.graphicsItems.ViewBox.axisCtrlTemplate_pyqt5\'
使用 pyinstaller 创建 exe 文件后遇到此错误。
- python-版本:3.8
- pyqtgraph-版本:0.12.3
- pyinstaller-版本:4.2
-
我通过将未创建的模块文件导入到我的 python 代码中解决了这个错误。
from pyqtgraph.graphicsItems.ViewBox.axisCtrlTemplate_pyqt5 import *from pyqtgraph.graphicsItems.PlotItem.plotConfigTemplate_pyqt5 import *from pyqtgraph.imageview.ImageViewTemplate_pyqt5 import *from pyqtgraph.console.template_pyqt5 import *问题是,虽然.exe文件运行正常,但是包含绘图的部分程序没有显示任何绘图。 -
如果您已经解决了问题,您可以发表您的评论作为答案。
-
其实我已经解决了这个错误。但正如我所提到的,在运行
.exe之后,我遇到了另一个问题。所以这不是确切的解决方案。