[转贴]成功解决AttributeError: module 'enum' has no attribute 'IntFlag'?

原帖地址:https://blog.csdn.net/qq_41185868/article/details/80599336

今天手贱,升级了所有的python软件包。

结果打包程序全部失败。找了很多,最终发现是enum34 造成的。

解决问题
AttributeError: module 'enum' has no attribute 'IntFlag'?

 

解决思路
This is likely caused by the package enum34. Since python 3.4 there's a standard library enum module, so you should uninstall enum34, which is no longer compatible with the enum in the standard library since enum.IntFlag was added in python 3.6.

 

解决方法
pip uninstall enum34   #卸载enum34

 

你可能感兴趣的:(python)