How to fix this error on tensorflow

Traceback (most recent call last):

File ~\anaconda3\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)

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

File ~\anaconda3\lib\site-packages\keras_init_.py:21
from keras import models

File ~\anaconda3\lib\site-packages\keras\models_init_.py:18
from keras.engine.functional import Functional

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

ModuleNotFoundError: No module named ‘tensorflow’

@satria_bajahitam,

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!