No module named 'sklearn'

Search the logs for messages related to the installation of scikit-learn.

I don’t see scikit-learn mentioned in the logs. Just that error: "ModuleNotFoundError: No module named ‘sklearn’ "

I forked from 4f2302f and deployed to Streamlit Cloud and I couldn’t reproduce the issue. scikit-learn was installed and sklearn.neighbors succesfully imported. Try rebooting or redeploying your application.

There are other potential issues though, probably due to the very old versions you are specifying.

I’m having the same issue. I’m getting this error: ModuleNotFoundError: No module named ‘sklearn’
I don’t think I have any typos, and I have “scikit-learn” in my requirements.txt and “import sklearn” in my code

here my streamlit :https://heartdisease-predict.streamlit.app/
here my repo :
GitHub - AfandyRidwan/heart_disease: Heart Disease Prediction model with Random Forest Classifier

@af1

Try rebooting or redeploying your application.

I’m having the same problem


the error. Please i need help

Please share a link to your GitHub repo and the deployed app

Hey Streamlit team!

i am facing very similar issues as well. Please help!
my app: Streamlit (test-bikewayfinder.streamlit.app)
github: GitHub - jzhenli1/priv_test

Everything works fine on my local computer but this error appears when i deploy my app in the streamlit cloud

thanks in advance