module ‘tensorflow‘ has no attribute ‘get_default_graph‘
module 'tensorflow' has no attribute 'get_default_graph'
當我使用keras和tensorflow做深度學習的時候,python3.6報了這個錯誤,這個問題源自於keras和TensorFlow的版本過高導致模組不存在或者已經更改不再相容
解決辦法,降級TensorFlow和keras
pip uninstall tensorflow # 解除安裝tf
pip uninstall keras # 解除安裝keras
安裝1.2.0的tf 和 2.0.9的keras
pip install tensorflow==1.2.0
pip install keras==2.0.9
相關文章
- AttributeError: 'module' object has no attribute 'lock'ErrorObject
- module ‘h5py‘ has no attribute ‘File‘H5
- AttributeError: module ‘requests‘ has no attribute ‘_version_‘Error
- 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
- 解決pycharm問題:module 'pip' has no attribute 'main'PyCharmAI
- [轉]成功解決AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘?Error
- AttributeError: module...ops‘ has no attribute ‘_TensorLike‘, ValueError: `updates` argument..eagerError
- 【Error】AttributeError: module ‘scipy.misc‘ has no attribute ‘logsumexp‘ 的解決辦法Error
- Process object has no attribute '_popen'Object
- ‘dict‘ object has no attribute ‘iteritems‘Object
- AttributeError: 'dict' object has no attribute 'has_key'ErrorObject
- ‘FirewallD‘ object has no attribute ‘path‘ 、‘fw‘、is not registeredObject
- 【坑】Tkinter ‘NoneType‘ object has no attribute ‘destroy‘NoneObject
- AttributeError: 'Settings' object has no attribute 'HBase'ErrorObject
- 複雜網路中louvain演算法實現時報錯AttributeError: module ‘community‘ has no attribute ‘best_partition‘AI演算法ErrorUnity
- 問題解決:AttributeError: ‘NoneType‘ object has no attribute ‘append‘ErrorNoneObjectAPP
- Method has too many Body parameters: public abstract com.cloud.module.smartkeCloud
- python去掉excel空格和換行,報錯'int' object has no attribute 'strip'PythonExcelObject
- 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
- Oracle RAC crsd日誌-0Resource ora!dbtest2!vip has incomplete attribute setOracle
- jQuery [attribute]jQuery
- Attribute Checks
- 理解Spring MVC Model Attribute和Session AttributeSpringMVCSession
- 記錄安裝conda install Python庫時報No module named ‘tensorflow‘錯誤Python
- jQuery has()jQuery
- jQuery :has()jQuery
- oracle hasOracle
- module hmrclient is not a registered callable moduleclient
- jQuery [attribute*=value]jQuery
- jQuery [attribute~=value]jQuery
- jQuery [attribute|=value]jQuery
- jQuery [attribute$=value]jQuery
- jQuery [attribute^=value]jQuery
- jQuery [attribute!=value]jQuery
- jQuery [attribute=value]jQuery
- 1_使用face_recognition模組:錯誤AttributeError:'PngStream' object has no attribute 'chunk fcWp'(20190223)ErrorObject