原因是PyInstaller打包图片时格式不正确(需要.ico文件),
如果直接把图片格式改为ico,会提示"struct.error: unpack requires a buffer of 16 bytes"
解决方式, 访问http://www.ico51.cn/ 把你的图片转为ico, 再PyInstaller即可
原因是PyInstaller打包图片时格式不正确(需要.ico文件),
如果直接把图片格式改为ico,会提示"struct.error: unpack requires a buffer of 16 bytes"
解决方式, 访问http://www.ico51.cn/ 把你的图片转为ico, 再PyInstaller即可