module 'tensorflow' has no attribute 'Interactive Session' code example Example: module 'tensorflow' has no attribute 'InteractiveSession' sess=tf.compat.v1.InteractiveSession()