from tensorflow.python.keras.utils import tf_utils ImportError: cannot import name 'tf_utils'
865 ワード
Debug:kerasのインストールで問題が発生
質問:
理由:
Seems like it was a problem with keras 2.3.0, I installed keras 2.1.5 using pip and it works fine.
ソリューション:
リファレンスソース
https://stackoverflow.com/questions/57985406/cannot-import-name-tf-utils-when-using-importing-keras
質問:
from tensorflow.python.keras.utils import tf_utils
ImportError: cannot import name 'tf_utils'
理由:
Seems like it was a problem with keras 2.3.0, I installed keras 2.1.5 using pip and it works fine.
ソリューション:
pip install keras==2.1.5 -i https://pypi.tuna.tsinghua.edu.cn/simple
リファレンスソース
https://stackoverflow.com/questions/57985406/cannot-import-name-tf-utils-when-using-importing-keras