Python TensorFlow 报错'tensorflow.compat.v2.__internal__' has no attribute 'tf2'解决方法

本文主要介绍Python中,使用TensorFlow时,执行import Keras报错:AttributeError: module 'tensorflow.compat.v2.__internal__' has no attribute 'tf2'解决方法。

原文地址:Python TensorFlow 报错'tensorflow.compat.v2.__internal__' has no attribute 'tf2'解决方法

posted @ 2021-07-20 07:04  leviliang  阅读(2899)  评论(0)    收藏  举报