AttributeError: module 'tensorflow.python.training.checkpointable'
在运行import tensorflow as tf时出现:
经过检查认为是tensorflow库安装出现问题,卸载tensorflow库重新安装
重新安装tensorflow后,运行出现:AttributeError: module ‘tensorflow.python.training.checkpointable’
查阅资料,大多认为原因是:
升级或者安装 tensorflow 时,没有将老版本卸干净。
需要确保:import tensorflow 失败
然后再重新安装 tensorflow
然而卸载重装后没有解决
后面认为是由于版本问题导致,采用下面安装命令解决:
pip install tensorflow-gpu==1.2.1 -i https://pypi.tuna.tsinghua.edu.cn/simple