【问题标题】:pyqtgraph pyinstaller build exe filepyqtgraph pyinstaller 构建exe文件
【发布时间】:2014-01-19 23:24:13
【问题描述】:

我尝试从使用 pyqtgraph 的 python 应用程序和使用 pyinstaller 的 pyqt 库创建一个 *.exe 文件。 Pyinstaller 生成一个没有错误的 *.exe 文件,但是当我尝试启动它时,我收到一个错误,即找不到 pyqtgraph。

如何使用 pyinstaller 构建单个 *.exe 文件?

【问题讨论】:

    标签: python pyqt pyinstaller pyqtgraph


    【解决方案1】:

    Pyinstaller 不支持动态导入,在最新版本的 pyqtgraph (0.9.8) 中使用。但是,github (http://github.com/pyqtgraph/pyqtgraph) 上的最新开发代码确实使用任何动态导入,并且可能与 pyinstaller 一起工作得更好。

    另一种选择是尝试 py2exe,它确实支持动态导入。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-03-20
      • 1970-01-01
      • 2013-11-08
      • 2016-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多