AttributeError

Author: SetembruCreated Sep 15, 2020Updated Jul 12, 2021

After py deep_q_network.py:

AttributeError: module 'tensorflow' has no attribute 'InteractiveSession'

Then pip install --upgrade tensorflow==0.7

It returns:

ERROR: Could not find a version that satisfies the requirement tensorflow==0.7 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0)

ERROR: No matching distribution found for tensorflow==0.7

How can I run this?

Source: yenchenlin/DeepLearningFlappyBird