Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot load tensorflow_hub

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!

like image 650
Gal Hyams Avatar asked Apr 11 '18 11:04

Gal Hyams


People also ask

How do I fix ModuleNotFoundError No module named Tensorflow?

The Python "ModuleNotFoundError: No module named 'tensorflow'" occurs when we forget to install the tensorflow module before importing it or install it in an incorrect environment. To solve the error, install the module by running the pip install tensorflow command.

What is hub load?

Hub load is created by belt. tension. Belt tension, or the difference between. the tight side and slack side tension called the. effective tension, Te, is what creates torque.

What is Keraslayer?

Layers are the basic building blocks of neural networks in Keras. A layer consists of a tensor-in tensor-out computation function (the layer's call method) and some state, held in TensorFlow variables (the layer's weights).


1 Answers

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

like image 112
ChaosPredictor Avatar answered Oct 21 '22 19:10

ChaosPredictor