Hello
I have just learned deep learning models. So I tried to install the Tensorflow as per the instructions in the link:- Install TensorFlow 2
After installing, when I am doing import keras. System is giving me following errors
import keras
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\ragha\AppData\Local\Programs\Python\Python39\lib\site-packages\keras_init_.py”, line 21, in
from keras import models
File “C:\Users\ragha\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\models_init_.py”, line 18, in
from keras.engine.functional import Functional
File “C:\Users\ragha\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\functional.py”, line 34, in
from keras.engine import training as training_lib
File “C:\Users\ragha\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\training.py”, line 45, in
from keras.saving.legacy import save
File “C:\Users\ragha\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\saving\legacy\save.py”, line 24, in
from keras.saving.legacy.saved_model import load_context
File “C:\Users\ragha\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\saving\legacy\saved_model\load_context.py”, line 68, in
tf.internal.register_load_context_function(in_load_context)
AttributeError: module ‘tensorflow.compat.v2.internal’ has no attribute ‘register_load_context_function’
So I need help in resolving this error. So that I can work on Tensor Flow models.