python

使用了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

运行

留言

您的邮箱地址不会被公开。 必填项已用 * 标注

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。