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

posted @ 2020-07-28 15:09  o云淡风轻o  阅读(1812)  评论(0编辑  收藏  举报