AttributeError: module ‘tensorflow‘ has no attribute ‘compat‘ when importing tensorflow
当我们刚下好tensorflow并且准备用代码测试是否能用的时候,
结果会出现以下状况:
AttributeError: module 'tensorflow' has no attribute 'compat'
原因可能是安装的tensorflow的版本有问题
解决办法:
重新安装tensorflow的版本:
conda install tensorflow-estimator==2.0.0
...
原创
2021-01-02 17:44:00 ·
463 阅读 ·
0 评论