**
AttributeError: module ‘tensorflow’ has no attribute ‘compat’ when importing tensorflow
**
问题详述:在利用 Miniconda 安装 tensorflow-gpu 后,运行时出现报错
AttributeError: module 'tensorflow' has no attribute 'compat' when importing tensorflow
解决办法:首先通过 conda list 查看 tensorflow 的版本,经过确认,本人为2.0.0。
重新安装对应版本的 tensorflow-estimator 即可。
conda install tensorflow-estimator==2.0.0