AttributeError: module 'tensorflow._api.v1.compat.v1.compat' has no attribute 'v1'

Hello ,

Hope you are doing good.

I have TF = 1.x installed but i am getting this error.
I gave the below for tf1.x , it was working but now its showing error again.

Thanks !


Welcome to the Tensorflow Forum!

Unfortunately we are not supporting Tensorflow 1.x.

Please refer to Migrate to TensorFlow 2  |  TensorFlow Core to migrate 1.x to 2.x.

Thank you!