I am getting error "no module joblib" when I run it in Cloud

[08:10:42] 📦 Processed dependencies!

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




2023-03-12 08:11:04.949 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
  File "/app/pycharm_customer_behaviour/Cst_Nature.py", line 4, in <module>
    import joblib
ModuleNotFoundError: No module named 'joblib'

If you ask for help, please provide a link to your public github repo.

  • the correct file name is requirements.txt
  • remove all windows executables from the repo, streamlit cloud is a linux debian based runtime.
  • your requirements file is a mess and will not deploy on streamlit cloud. You don’t need all these packages. Delete it and write it manually from scratch. This is all you need in the file:
joblib
pandas
streamlit

Thankyou for the help I’ll rectify the problems, as soon the cloud comes back from maintenance!