I can see that this question has been asked before here tensorflow-has-no-attribute-compat
but the answer given was to
Microsoft Visual C++ 2015-2019 R
This is usually caused by the broken TensorFlow-estimator module.
simply do a
pip install tensorflow-estimator==2.1.*