安装Tensorflow 2.0后的坑has no attribute ‘contrib‘

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装Tensorflow 2.0后的坑has no attribute ‘contrib‘相关的知识,希望对你有一定的参考价值。

AttributeError: module ‘tensorflow‘ has no attribute ‘contrib‘

The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:

解决办法:
笔者简单地pip uninstall tensorflow
装回1.X的版本

以上是关于安装Tensorflow 2.0后的坑has no attribute ‘contrib‘的主要内容,如果未能解决你的问题,请参考以下文章

Tensorflow+keras解决使用model.load_weights时报错 ‘str‘ object has no attribute ‘decode‘

Tensorflow+keras解决使用model.load_weights时报错 ‘str‘ object has no attribute ‘decode‘

tensorflow兼容处理 tensorflow.compat.v1及module ‘tensorflow‘ has no attribute ‘reset_default_graph‘等问题汇总(

AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'

安装anaconda与tensorflow-gpu遇到的坑

AttributeError: module ‘tensorflow._api.v2.io.gfile’ has no attribute ‘get_filesystem’