ModuleNotFound Error on App Deployed on Streamlit Community Cloud

Hello! I have a Streamlit app that works well locally, but when I deployed it on Streamlit Community Cloud, it gave me a ModuleNotFound error for joblib. I have a requirements.txt file that only has streamlit and joblib, and it is at the top of the repository.

Link to the GitHub repo is here: GitHub - AleystreV/AllyED and the app is at allyed.streamlit.app

Thank you!

  • Use requirements.txt file below :arrow_down:
  • Place all import statements at the top of your python file
  • Change in all joblib.load lines the \ to / in the file paths
  • Do a reboot of the app
pandas
scikit-learn
joblib
streamlit
1 Like

Thank you so much - it works now!!

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