pyinstaller打包icon报错

pyinstaller打包icon报错

用pyinstaller打包exe文件时,是可以设置图标的,但如果没有设置好,就会报错。

我在打包的时候报了一个错

    except win32api.error as W32E:
AttributeError: module 'win32ctypes.pywin32.win32api' has no attribute 'error'

起初以为是包依赖, 或者其他问题, 后来发现把图标图片改为ico格式就好了.

猜你喜欢

转载自blog.csdn.net/hq_cjj/article/details/88619274