AttributeError: module 'tensorflow.python.training.checkpointable' has no attribute 'CheckpointableBase'

 

AttributeError: module 'tensorflow.python.training.checkpointable' has no attribute 'CheckpointableBase'

AttributeError: module 'tensorflow.python.training.checkpointable' has no attribute 'CheckpointableBase'

 

然后安装tensorflow

AttributeError: module 'tensorflow.python.training.checkpointable' has no attribute 'CheckpointableBase'

 

Pip install tensorflow-gpu==1.12.0
Pip install tensorflow==1.12.0
注意版本号一致,因为tensorflow-gpu对tensorflow有依赖性。

 

然后运行命令就成功了

AttributeError: module 'tensorflow.python.training.checkpointable' has no attribute 'CheckpointableBase'