解決問題
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 #解除安裝enum34
