[英]PyInstaller exe including fpdf package is not working
I've created an windows executable from a python script using PyInstaller . 我已经使用PyInstaller从python脚本创建了Windows可执行文件。 Since I've included the
fpdf
package, the exe is compiled without errors, but when I run it, I get an error dialog displaying the following and an OK button: 由于我已经包含了
fpdf
软件包,因此该exe的编译没有错误,但是当我运行它时,出现一个错误对话框,其中显示以下内容和OK按钮:
Fatal Error!
致命错误!
pyi_rth_pkgres returned -1
pyi_rth_pkgres返回-1
I can click the OK button and the exe process finishes. 我可以单击“确定”按钮,exe程序完成。
I've looked trough the fpdf
source code, but I don't think it has some hidden imports. 我看过
fpdf
源代码,但我认为它没有隐藏的导入内容。
What can I do now? 我现在能做什么? Does anybody has experience with including
fpdf
in a PyInstaller .exe? 没有任何人有经验,包括
fpdf
在PyInstaller .exe文件?
将setuptools降级到19.2版可能会解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.