码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-11-01 14:35:53      阅读:2379      评论:0      收藏:0      [点我收藏+]

标签:file   unit   format   dep   error   版本   HERE   error:   you   

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‘

标签:file   unit   format   dep   error   版本   HERE   error:   you   

原文地址:https://blog.51cto.com/cfy10/2446977

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!