Key error: sklearn.preprocessing

Hello @randyzwitch

I met the same error message. However, the error message is “from sklearn import preprocessing”.
I don’t think this belongs to cloud secrets management functionality and I go through the docs, don’t find a solution.
Any suggestion or solution on this? Thank you so much!

Hello, any support on this issue here? Thank you!

Hi @Tony1, welcome to the Streamlit community!

Do you have all of your requirements in a file in your repo, so that Streamlit Cloud can install the dependencies you need?

https://docs.streamlit.io/streamlit-cloud/get-started/deploy-an-app/app-dependencies

Best,
Randy

2 Likes

Thank you so much. Randy @randyzwitch
Problem solved. How could I forget to update the dependency file!

2 Likes

Plugging in a relevant knowledge base article from our documentation: ModuleNotFoundError No module named - Streamlit Docs

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