使用了python-ics库的项目, 使用pyinstaller打包为exe
文章目录[隐藏]
直接使用pyinstaller打包后的main.exe运行报错,报错信息为
AttributeError: module ‘ics.structures’ has no attribute ‘s_extended_data_flash_header’
安装pyinstaller
pip install pyinstaller
生成main.spec

修改main.spec
从下面复制,我把其中所有的test都改为了main

生成exe

运行

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。
转载请注明来源:使用了python-ics库的项目, 使用pyinstaller打包为exe - 多知在线