写import tensorflow_hub后,出现如下错误:
class LatestModuleExporter(tf.estimator.Exporter):
AttributeError: 模块 'tensorflow.python.estimator.estimator_lib' 没有属性 'Exporter'
我在 Windows 10 上使用 python 3.6 和 tensorflow 1.7
谢谢!
请您参考如下方法:
你应该至少有 tensorflow 1.7.0,升级方式:
pip install "tensorflow>=1.7.0"
pip install tensorflow-hub
然后:
pip install tensorflow-hub
来源:here
