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

问题记录

pip的时候意外报错AttributeError: module 'enum' has no attribute 'IntFlag'?

参考资料

https://blog.csdn.net/qq_41185868/article/details/80599336

问题原因

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   #卸载enum34

猜你喜欢

转载自blog.csdn.net/flyconley/article/details/119812450