[轉]成功解決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 ‘requests‘ has no attribute ‘_version_‘Error
- 【Error】AttributeError: module ‘scipy.misc‘ has no attribute ‘logsumexp‘ 的解決辦法Error
- 問題解決:AttributeError: ‘NoneType‘ object has no attribute ‘append‘ErrorNoneObjectAPP
- AttributeError: module...ops‘ has no attribute ‘_TensorLike‘, ValueError: `updates` argument..eagerError
- AttributeError: module‘ tensorflow_core._api.v2. train‘ has no attribute‘ AdamOptimizer‘ErrorAPIAI
- AttributeError: 'Settings' object has no attribute 'HBase'ErrorObject
- AttributeError: module ‘tensorflow._api.v1.nn.rnn_cell‘ has no attribute ‘InputProjectionWrapper‘ErrorAPIRNNProjectAPP
- 解決pycharm問題:module 'pip' has no attribute 'main'PyCharmAI
- module ‘tensorflow‘ has no attribute ‘get_default_graph‘
- module ‘h5py‘ has no attribute ‘File‘H5
- Traceback (most recent call last): File "AttributeError: 'NoneType' object has no attribute 'group'ASTErrorNoneObject
- Rasa init報錯:AttributeError: type object 'Callable' has no attribute '_abc_registry'ErrorObject
- 複雜網路中louvain演算法實現時報錯AttributeError: module ‘community‘ has no attribute ‘best_partition‘AI演算法ErrorUnity
- 1_使用face_recognition模組:錯誤AttributeError:'PngStream' object has no attribute 'chunk fcWp'(20190223)ErrorObject
- 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
- 【坑】Tkinter ‘NoneType‘ object has no attribute ‘destroy‘NoneObject
- python 3呼叫paramiko模組報錯AttributeError: modulePythonError
- Input報錯“Form elements must have labels: Element has no title attribute Element has no placeholde”ORM
- 解決MySQL server has gone away錯誤的解決方案MySqlServerGo
- 解決cannot find module providing package或cannot find main modulePackageAI
- No module named MYSQLdb 問題解決MySql
- ImportError: No module named ‘torch‘ 解決方法ImportError
- 解決The jar file has no source attachment問題JAR
- python去掉excel空格和換行,報錯'int' object has no attribute 'strip'PythonExcelObject
- ModuleNotFoundError: No module named ‘DBUtils‘解決辦法Error
- “command-not-found has crashed” 解決辦法 (*unsolved)
- 解決Cannot find module '@angular/compiler-cli'AngularCompile
- python ModuleNotFoundError: No module named ‘requests‘ 的 解決方案PythonError
- has been blocked by CORS policy跨域問題解決BloCCORS跨域
- Method has too many Body parameters: public abstract com.cloud.module.smartkeCloud
- 【Maven篇】---解決Maven線上部署java.lang.ClassNotFoundException和no main manifest attribute解決方法MavenJavaExceptionAI
- 解決jpa查詢時,Unable to locate Attribute with the the given name錯誤
- Java Enum 個人見解Java
- Java 列舉 enum 詳解Java
- idea中module不生成iml檔案解決Idea