问题:
导入tensorflow_hub报ModuleNotFoundError: No module named ‘tensorflow.python.checkpoint’

解决:
tensorflow-estimator版本不对 和tensorflow(2.6.0)版本一致 。

pip install -U tensorflow-estimator==2.6.0

验证:

import tensorflow_hub报错
最新推荐文章于 2026-07-11 16:18:05 发布
文章讨论了在使用TensorFlowHub时遇到的ModuleNotFoundError,原因是tensorflow-estimator版本不正确。解决方案是确保安装的tensorflow-estimator版本与TensorFlow2.6.0保持一致,通过pipinstall-Utensorflow-estimator=2.6.0进行升级。

578

被折叠的 条评论
为什么被折叠?



