Hi while deploying created app on streamlit cloud i am getting error " ModuleNotFoundError: No module named ‘sklearn’'. This is despite when my requirement.txt file contain mentioning of scikit-learn and app contain import sklearn.
My Github Repo is : GitHub - rohitmalhotra67/Machine_Dashboard: Machine Dashboard.
App is working fine in local pc.
Please help. I really like using streamlit want to continue using it.
You’ve misspelled the filename. It’s
requirements.txt, not requirement.txt.
I am currently experiencing the same problem. In my local system as well as on Streamlit Cloud.
I have installed scikit-learn in my system
Welcome to the Streamlit forum Please read through the guidelines on how to post an effective question on the forum – in particular, please share a link to your GitHub repo, Streamlit Cloud app, and your requirements file.
Some helpful resources:
@hfn_13 welcome to st community firstly. i think you need to pip install the required module.
eg: pip install -U scikit-learn
and then push to with pip freeze > requirements.txt
requirements.txt will take care the same for streamlit cloud deployment