Pyinstaller打包程序提示Failed to execute script pyi_rth_certifi

作者:matrix 被围观: 6,837 次 发布时间:2021-02-08 分类:零零星星 | 3 条评论 »

这是一个创建于 1176 天前的主题,其中的信息可能已经有所发展或是发生改变。

本地用miniconda创建的python环境,程序的打包和运行都是正常。但是搬到了其他电脑运行就是失败,死活报错Failed to execute script pyi_rth_certifi。尝试其他打包参数-p --datas --hidden-import,更换python版本和Pyinstaller的develop版本也一样。

图片5291-Pyinstaller打包提示Failed to execute script pyi_rth_certifi

最后还是在cmd命令行打开调试才显示具体信息。
删除dist/,build/目录再使用-c参数重新打包,之后从cmd执行程序才看到详细提示。

最终并不是依赖的问题,只是因为运行环境缺少dll文件导致。😂

解决办法

安装OpenSSL库

下载页面:https://slproweb.com/products/Win32OpenSSL.html

默认安装之后就可以了

参考:

https://bugs.python.org/issue39344

https://slproweb.com/products/Win32OpenSSL.html

Pyinstaller打包报错Failed to execute script pyi_rth_pkgres

https://stackoverflow.com/questions/32093559/exe-file-created-by-pyinstaller-not-find-self-defined-modules-while-running

https://wiki.openssl.org/index.php/Binaries

其他文章:
本文固定链接:https://www.hhtjim.com/pyinstaller-packaging-program-prompts-failed-to-execute-the-script-pyi_rth_certifi.html
matrix
本文章由 matrix 于2021年02月08日发布在零零星星分类下,目前没有通告,你可以至底部留下评论。
转载请注明:Pyinstaller打包程序提示Failed to execute script pyi_rth_certifi-HHTjim'S 部落格
关键字:,

有3 条评论 »

  1. 谷歌优化 谷歌优化 2022-10-13 8:47:08 +0800#3

    暂时没发生过这种失误,可以先学习一下

  2. Zarek Zarek 2021-6-22 21:17:48 +0800#2

    谢谢分享解决方法,mark下,方便寻找,

  3. Ryan Ryan 2021-3-10 19:51:43 +0800#1

    Ryan快快跑的新域名是 https://kkp.disk.st

添加新评论 »

 🙈 😱 😂 😛 😭 😳 😀 😆 👿 😉 😯 😮 😕 😎 😐 😥 😡 😈 💡

插入图片

NOTICE: You should type some Chinese word (like “你好”) in your comment to pass the spam-check, thanks for your patience!