[轉]成功解決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打頭的兩個資料夾即可!
---------------------
作者:一個處女座的程式猿
來源:CSDN
原文:https://blog.csdn.net/qq_41185868/article/details/80599336
版權宣告:本文為作者原創文章,轉載請附上博文連結!
內容解析By:CSDN,CNBLOG部落格文章一鍵轉載外掛
相關文章
- AttributeError: 'module' object has no attribute 'lock'ErrorObject
- AttributeError: module ‘requests‘ has no attribute ‘_version_‘Error
- 【Error】AttributeError: module ‘scipy.misc‘ has no attribute ‘logsumexp‘ 的解決辦法Error
- AttributeError: 'dict' object has no attribute 'has_key'ErrorObject
- 問題解決:AttributeError: ‘NoneType‘ object has no attribute ‘append‘ErrorNoneObjectAPP
- 解決pycharm問題:module 'pip' has no attribute 'main'PyCharmAI
- AttributeError: module...ops‘ has no attribute ‘_TensorLike‘, ValueError: `updates` argument..eagerError
- AttributeError: 'Settings' object has no attribute 'HBase'ErrorObject
- AttributeError: module ‘tensorflow._api.v1.nn.rnn_cell‘ has no attribute ‘InputProjectionWrapper‘ErrorAPIRNNProjectAPP
- AttributeError: module‘ tensorflow_core._api.v2. train‘ has no attribute‘ AdamOptimizer‘ErrorAPIAI
- module ‘h5py‘ has no attribute ‘File‘H5
- module ‘tensorflow‘ has no attribute ‘get_default_graph‘
- 複雜網路中louvain演算法實現時報錯AttributeError: module ‘community‘ has no attribute ‘best_partition‘AI演算法ErrorUnity
- Rasa init報錯:AttributeError: type object 'Callable' has no attribute '_abc_registry'ErrorObject
- Traceback (most recent call last): File "AttributeError: 'NoneType' object has no attribute 'group'ASTErrorNoneObject
- Process object has no attribute '_popen'Object
- ‘dict‘ object has no attribute ‘iteritems‘Object
- multiprocessing pool AttributeError: Can't get attribute 'func'Error
- ‘FirewallD‘ object has no attribute ‘path‘ 、‘fw‘、is not registeredObject
- 1_使用face_recognition模組:錯誤AttributeError:'PngStream' object has no attribute 'chunk fcWp'(20190223)ErrorObject
- 【坑】Tkinter ‘NoneType‘ object has no attribute ‘destroy‘NoneObject
- python 3呼叫paramiko模組報錯AttributeError: modulePythonError
- MySQL server has gone away 解決方案MySqlServerGo
- No module named MYSQLdb 問題解決MySql
- ImportError: No module named ‘torch‘ 解決方法ImportError
- ImportError: No module named setuptools 解決方法ImportError
- 解決MySQL server has gone away錯誤的解決方案MySqlServerGo
- 解決The jar file has no source attachment問題JAR
- ModuleNotFoundError: No module named ‘DBUtils‘解決辦法Error
- 解決cannot find module providing package或cannot find main modulePackageAI
- if doesn't support the "condition"attribute 問題解決
- REMOTE HOST IDENTIFICATION HAS CHANGED 問題解決REMIDE
- Java Enum 個人見解Java
- C/C++:enum的理解 / enum與int的相互轉換C++
- Method has too many Body parameters: public abstract com.cloud.module.smartkeCloud
- has been blocked by CORS policy跨域問題解決BloCCORS跨域
- MySQL server has gone away 問題的解決方法MySqlServerGo
- ORA-28001: the password has expired解決方法