Cannot load tensorflow_hub

Gal Hyams picture Gal Hyams · Apr 11, 2018 · Viewed 14.7k times · Source

after writing import tensorflow_hub, the following error emerges:

class LatestModuleExporter(tf.estimator.Exporter):

AttributeError: module 'tensorflow.python.estimator.estimator_lib' has no attribute 'Exporter'

I'm using python 3.6 with tensorflow 1.7 on Windows 10

thanks!

Answer

ChaosPredictor picture ChaosPredictor · Nov 16, 2018

You should have at least tensorflow 1.7.0, upgrate by:

pip install "tensorflow>=1.7.0"
pip install tensorflow-hub

and then:

pip install tensorflow-hub

source: here