Error " ModuleNotFoundError: No module named 'gradio'"

Hello,
Despite the operations below to resolve the error with gradio, it persists. How can I resolve this error?
Thank you

Error :
Error " ModuleNotFoundError: No module named ‘gradio’"

Operations performed :

Run this command in the terminal:

pip install gradio

If it is installed and code still throws the same error, then place these two lines first:

import sys
sys.path.append( path_to_the_gradio_module )

import openai
import gradio
# ...