I'm building an app that use the module google-generativeai but It didn't download the module properly when I run it locally it has no problem.
Here's the link to the app: https://nlp-project-5utyuomt9vnxkr26olnp2g.streamlit.app/
The repository: https://github.com/smokezkiller-web/NLP-Project
This is the error message I'm getting hope it helps you figure
out the problem somehow.
File "/home/adminuser/venv/lib/python3.13/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 129, in exec_func_with_error_handling
result = func()
File "/home/adminuser/venv/lib/python3.13/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 669, in code_to_exec
exec(code, module.__dict__) # noqa: S102
~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/mount/src/nlp-project/app.py", line 3, in <module>
import google.generativeai as genai
ModuleNotFoundError: No module named 'google.generativeai'
2025-12-02 15:04:35.883 503 GET /script-health-check (127.0.0.1) 237.11ms
2025-12-02 15:04:40.647 Uncaught app execution
Traceback (most recent call last):
File "/home/adminuser/venv/lib/python3.13/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 129, in exec_func_with_error_handling
result = func()
File "/home/adminuser/venv/lib/python3.13/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 669, in code_to_exec
exec(code, module.__dict__) # noqa: S102
~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/mount/src/nlp-project/app.py", line 3, in <module>
import google.generativeai as genai
ModuleNotFoundError: No module named 'google.generativeai'
2025-12-02 15:04:40.877 503 GET /script-health-check (127.0.0.1) 231.23m