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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM