Error when deploy with module pickle

this is my repo: khanhthanhdev/salary_predict: salary_predict (github.com)

When deploy it error like this:
09:00:10] :package: Processed dependencies!

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.

2023-07-12 09:00:33.857 Uncaught app exception
Traceback (most recent call last):
File “/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 552, in _run_script
exec(code, module.dict)
File “/app/salary_predict/app.py”, line 4, in
from predict_page import show_predict_page
File “/app/salary_predict/predict_page.py”, line 56, in
data = load_model()
File “/app/salary_predict/predict_page.py”, line 8, in load_model
data = pickle.load(file)
ModuleNotFoundError: No module named ‘sklearn’

Does anyone can fix it. Thank you!

The requirements.txt file is missing.

https://docs.streamlit.io/streamlit-community-cloud/get-started/deploy-an-app/app-dependencies

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.