How to fix this error on tensorflow

Traceback (most recent call last):

File ~\anaconda3\lib\site-packages\spyder_kernels\ in compat_exec
exec(code, globals, locals)

File d:\seminar proposal\program\uji coba program\ujicoba 4\ujicoba
from keras.models import Sequential

File ~\anaconda3\lib\site-packages\
from keras import models

File ~\anaconda3\lib\site-packages\keras\
from keras.engine.functional import Functional

File ~\anaconda3\lib\site-packages\keras\engine\
import tensorflow.compat.v2 as tf

ModuleNotFoundError: No module named ‘tensorflow’


To use Keras, will need to have the Tensorflow package installed. Once TensorFlow is installed, just import Keras as shown below

from tensorflow import keras

Thank you!