module ‘tensorflow’ has no attribute ‘get_default_graph’
當我使用keras和tensorflow做深度學習的時候,python3.7報了這個錯誤,這個問題源自於keras和TensorFlow的版本過高導致模塊不存在或者已經更改不再兼容
解決辦法,降級。改為python3.6.5,TensorFlow1.12.0和keras 2.2.4
對應關系如下
python,tensorflow和keras的版本對應關系。
https://docs.floydhub.com/guides/environments/
————————————————
版權聲明:本文為CSDN博主「devilyouwei」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/u014466109/article/details/88877321
Anaconda安裝、查看、卸載第三方庫
https://blog.csdn.net/qq_35711921/article/details/80495662
Anaconda詳細安裝及使用教程(帶圖文) - 代碼幫 - CSDN博客
https://blog.csdn.net/ITLearnHall/article/details/81708148
Anaconda版本選擇 & Python3.6版本的Anaconda下載
https://blog.csdn.net/Zhou_Dao/article/details/87833957
pip install 安裝特別慢
以tensorflow為例:
pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple/