No module named sklearnn

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
    exec(code, module.__dict__)File "/mount/src/heart__disease_pred_using_streamlit/heart_pred.py", line 6, in <module>
    loaded_model = pickle.load(open('trained_model.sav', 'rb'))

how to solve this???
link to github repo: GitHub - yooumarr/Heart__disease_pred_using_streamlit

It is running well locally without any errors. But when i deply it on streamlit cloud and then click on the button that runs the app, the error comes.

Then read the part that starts with “If your app is deployed on Streamlit Community Cloud …” in the linked post.

Pay attention to the name of the requirements file.

requirements.txt

1 Like

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