Google sheet is connected to python and works BUT streamlit returns this error

Google sheet is connected to python and works BUT streamlit returns this error

the code works fine when I run it as a localhost

When you deploy to Streamlit Cloud, you have to tell what it needs to pip install in order to work. You need a requirements file that lists everything besides Streamlit and built-in modules that you import in your code.

thank you so much