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.
#tf.compat.v1.app.run()
I gave the below for tf1.x , it was working but now its showing error again.
tf.app.run()

Thanks !

@yukti_adya,

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!