Tensor flow installation issue


ImportError Traceback (most recent call last)
Cell In[10], line 1
----> 1 import tensorflow as tf
2 from tensorflow.keras import datasets, layers, models
3 import matplotlib.pyplot as plt

File c:\users\u21t28\appdata\local\programs\python\python39\lib\site-packages\tensorflow_init_.py:38
35 import sys as _sys
37 from tensorflow.python.tools import module_util as _module_util
—> 38 from tensorflow.python.util.lazy_loader import KerasLazyLoader as _KerasLazyLoader
40 # Make sure code inside the TensorFlow codebase can use tf2.enabled() at import.
41 _os.environ[“TF2_BEHAVIOR”] = “1”

ImportError: cannot import name ‘KerasLazyLoader’ from ‘tensorflow.python.util.lazy_loader’ (c:\users\u21t28\appdata\local\programs\python\python39\lib\site-packages\tensorflow\python\util\lazy_loader.py)

The below are the version details

installed keras-3.0.5 tensorboard-2.16.2 tensorflow-2.16.1 tensorflow-intel-2.16.1

Hi @AnandaKrishnan_ak_18, Could you please let us know in which environment and OS you are facing this issue. And also let us know the steps you have followed for installing Tensorflow. Thank You.