TypeError: attrib() got an unexpected keyword argument 'convert'

使用pyinstaller -F aaa.py时,报错

TypeError: attrib() got an unexpected keyword argument 'convert'

没有exe生成,打包其它py时没有出现过此问题,现在也不知具体原因,因为没有用到pytest,但是采用网上解决方法可行

链接:https://blog.csdn.net/lixiaoer0728/article/details/105286537?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param

解决方法:

1. pip uninstall attrs

2. pip install attrs==19.1.0

原文地址:https://www.cnblogs.com/smart-zihan/p/13391226.html