pyinstaller struct.error:解包需要长度为 16 的字节对象

yag*_*man 0 python windows icons pyinstaller

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

有关更多信息,请参阅:https://github.com/pyinstaller/pyinstaller/issues/2445

任何帮助表示赞赏!

yag*_*man 7

结果发现我的图标文件不被 pyinstaller 接受。不要从谷歌图像下载您的图标,然后png将扩展名更改为ico,由于某种原因根本不起作用