安装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的版本

文章来自:https://blog.51cto.com/cfy10/2446977
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3