import tensorflow_hub报错

问题:
导入tensorflow_hub报ModuleNotFoundError: No module named ‘tensorflow.python.checkpoint’
报错图片
解决:
tensorflow-estimator版本不对 和tensorflow(2.6.0)版本一致 。
在这里插入图片描述
pip install -U tensorflow-estimator==2.6.0
在这里插入图片描述
验证:
在这里插入图片描述