Motivation: Installing the standalone keras package seemed to result in a collision with the keras embedded in tensorflow. This resulted in the error: module 'tensorflow.compat.v2.__internal__' has no attribute 'tf2'. This has been a problem for at least a few months: https://datarobot.slack.com/archives/CNPG5975J/p1627575911085100.
Solution: Removing keras from the requirements.txt file and adjusting the relevant import statement in custom.py has resolved this issue.
Motivation: Installing the standalone keras package seemed to result in a collision with the keras embedded in tensorflow. This resulted in the error:
module 'tensorflow.compat.v2.__internal__' has no attribute 'tf2'
. This has been a problem for at least a few months: https://datarobot.slack.com/archives/CNPG5975J/p1627575911085100.Solution: Removing keras from the requirements.txt file and adjusting the relevant import statement in custom.py has resolved this issue.