TensorFlow changed its API in version 2 and it is not compatible with versions 1.x. You should either port your code to Tensorflow 2.x or specify the latest working Tensorflow version (most probably version 1.15). As it seems that Tensorflow 1.15 doesn't support recent versions of Python, you might need to specify the latest supported Python version as well, probably version 3.7.