成功解決AttributeError: module 'enum' has no attribute 'IntFlag'?
成功解決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 ? #卸載enum34
大功告成!!哈哈!!
網友推薦解決方法:歡迎各路網友,前來共同探討出錯問題,解決bug,共享快樂!
用不了pip的網友,可直接刪掉\Lib\site-packages\enum打頭的兩個文件夾即可!
Python
版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。