How to fix «from tensorflow.python.eager import monitoring» / «cannot import name 'monitoring'»?


1 Like

The tensorflow.python.eager.monitoring module is really absent in TensorFlow 1.x:

It was added to the TensorFlow codebase at 2019-04-05 by the following commit:

It seems that I had installed a wrong version of the tensorflow_estimator pip package:
I have solved the issue by installing the proper version:

pip uninstall tensorflow_estimator
pip install -Iv tensorflow_estimator==1.13.0

It worked for me ! Thank you