title: ImportError: cannot import name 'network' from 'tensorflow.python.keras.engine'
body: <p>Getting this error when trying to import tf_agents.environments running on Tensorflow 2.3.0, using anaconda environment. Have tried to reinstall tensorflow, still getting same error. Running the jupyter notebook in as admin, still getting same error. I am using python 3.8</p>
  <pre><code>from tf_agents.environments import suite_gym
  
  
  
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-8-b9cd8ac2787f&gt; in &lt;module&gt;
  ----&gt; 1 from tf_agents.environments import suite_gym
        2 
        3 # env = suite_gym.load(&quot;Breakout-v4&quot;)
        4 # env
  
  ~\AppData\Roaming\Python\Python38\site-packages\tf_agents\environments\__init__.py in &lt;module&gt;
       24 from tf_agents.environments import tf_py_environment
       25 from tf_agents.environments import trajectory_replay
  ---&gt; 26 from tf_agents.environments import utils
       27 from tf_agents.environments import wrappers
  
  ~\AppData\Roaming\Python\Python38\site-packages\tf_agents\environments\utils.py in &lt;module&gt;
       23 from tf_agents.environments import tf_environment
       24 from tf_agents.environments import tf_py_environment
  ---&gt; 25 from tf_agents.policies import random_py_policy
       26 from tf_agents.specs import array_spec
       27 
  
  ~\AppData\Roaming\Python\Python38\site-packages\tf_agents\policies\__init__.py in &lt;module&gt;
       16 &quot;&quot;&quot;Policies Module.&quot;&quot;&quot;
       17 
  ---&gt; 18 from tf_agents.policies import actor_policy
       19 from tf_agents.policies import boltzmann_policy
       20 from tf_agents.policies import epsilon_greedy_policy
  
  ~\AppData\Roaming\Python\Python38\site-packages\tf_agents\policies\actor_policy.py in &lt;module&gt;
       27 import tensorflow_probability as tfp
       28 
  ---&gt; 29 from tf_agents.networks import network
       30 from tf_agents.policies import tf_policy
       31 from tf_agents.specs import tensor_spec
  
  ~\AppData\Roaming\Python\Python38\site-packages\tf_agents\networks\__init__.py in &lt;module&gt;
       16 &quot;&quot;&quot;Networks Module.&quot;&quot;&quot;
       17 
  ---&gt; 18 from tf_agents.networks import actor_distribution_network
       19 from tf_agents.networks import actor_distribution_rnn_network
       20 from tf_agents.networks import bias_layer
  
  ~\AppData\Roaming\Python\Python38\site-packages\tf_agents\networks\actor_distribution_network.py in &lt;module&gt;
       24 import tensorflow as tf  # pylint: disable=g-explicit-tensorflow-version-import
       25 
  ---&gt; 26 from tf_agents.networks import categorical_projection_network
       27 from tf_agents.networks import encoding_network
       28 from tf_agents.networks import network
  
  ~\AppData\Roaming\Python\Python38\site-packages\tf_agents\networks\categorical_projection_network.py in &lt;module&gt;
       24 import tensorflow_probability as tfp
       25 
  ---&gt; 26 from tf_agents.networks import network
       27 from tf_agents.networks import utils
       28 from tf_agents.specs import distribution_spec
  
  ~\AppData\Roaming\Python\Python38\site-packages\tf_agents\networks\network.py in &lt;module&gt;
       31 
       32 # pylint:disable=g-direct-tensorflow-import
  ---&gt; 33 from tensorflow.python.keras.engine import network as keras_network  # TF internal
       34 from tensorflow.python.training.tracking import base  # TF internal
       35 from tensorflow.python.util import tf_decorator  # TF internal
  
  ImportError: cannot import name 'network' from 'tensorflow.python.keras.engine' (C:\Users\Vision\anaconda3\envs\tf2\lib\site-packages\tensorflow\python\keras\engine\__init__.py)
  </code></pre>