Error when running tensorflow in virtualenv: module 'tensorflow' has no attribute 'truncated_normal'
In Tensorflow v2.0 and above, "tf.truncated_normal" replaced with "tf.random.truncated_normal"
I have the following error when running a CNN made in keras

File
  "venv/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py",
  line 4185, in truncated_normal
      return tf.truncated_normal(shape, mean, stddev, dtype=dtype, seed=seed) AttributeError: module 'tensorflow' has no attribute
  'truncated_normal'

I have already installed and reinstalled Tensorflow 2.0 several times. What could be happening?