现象是通过pyinstaller -F --icon=Logo.ico dddd.py 打包成exe,不加--icon参数时能打包成功,加入后报错“struct.error: unpack requires a string argument of length 16",百度后得到答案是图标文件的尺寸问题,原先的尺寸为16x16的,改成128x128的后,打包成功。

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-05-22
  • 2021-09-12
猜你喜欢
  • 2021-09-18
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-01-13
  • 2021-12-17
  • 2021-12-05
相关资源
相似解决方案