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