俩木成林 发表于 2022-3-11 20:29:50

成功解决AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘?



解决问题
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.
这可能是由包Enum34引起的。因为Python3.4有一个标准库枚举模块,所以您应该卸载Enum34,因为在Python3.6中添加了Enum.Intflag,所以它不再与标准库中的枚举兼容。

解决方法

pip uninstall enum34

网友推荐解决方法:欢迎各路网友,前来共同探讨出错问题,解决bug,共享快乐!

用不了pip的网友,可直接删掉\Lib\site-packages\enum打头的两个文件夹即可!

页: [1]
查看完整版本: 成功解决AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘?