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

03

1 Like

The tensorflow.python.eager.monitoring module is really absent in TensorFlow 1.x:
github.com/tensorflow/tensorflow/tree/v1.13.1/tensorflow/python/eager/monitoring.py

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: https://github.com/tensorflow/estimator
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