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
Try rebooting or redeploying your application.
I’m having the same problem
Please share a link to your GitHub repo and the deployed app