pyinstaller struct.error: unpack 需要一个长度为 16 的字节对象 [英] pyinstaller struct.error: unpack requires a bytes object of length 16

查看:57
本文介绍了pyinstaller struct.error: unpack 需要一个长度为 16 的字节对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用 pyinstaller 向我的 exe 添加图标,但出现上述错误!

trying to add an icon to my exe using pyinstaller but I get the above error!

查看更多信息:https://github.com/pyinstaller/pyinstaller/issues/2445

感谢任何帮助!

推荐答案

结果是pyinstaller不接受我的图标文件.不要从谷歌图片下载你的图标为 png 然后将扩展名更改为 ico,因为某些原因根本不起作用

It turn out that my icon file is not accepted by pyinstaller. Do not download your icon from google images as png then change the extention to ico, for some reason that does not work at all

这篇关于pyinstaller struct.error: unpack 需要一个长度为 16 的字节对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆