# Unable to install app in streamlit cloud

**URL:** <https://discuss.streamlit.io/t/unable-to-install-app-in-streamlit-cloud/36415>\
**Category:** Deployment\
**Tags:** streamlit-cloud\
**Created:** [January 20, 2023, 8:43pm UTC](https://discuss.streamlit.io/t/unable-to-install-app-in-streamlit-cloud/36415 "2023-01-20T20:43:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajasegaran89](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/rajasegaran89/32/22094_2.png) [@rajasegaran89](https://discuss.streamlit.io/u/rajasegaran89)\
**Post date:** [January 20, 2023, 8:43pm UTC](https://discuss.streamlit.io/t/unable-to-install-app-in-streamlit-cloud/36415/1 "2023-01-20T20:43:19Z")

</div>

![image](https://global.discourse-cdn.com/streamlit/original/3X/9/9/995fe7c026884d574058ad401897c662808d908c.png)

---

<div class="post-metadata">

**Author:** ![mathcatsand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/mathcatsand/32/48006_2.png) [@mathcatsand](https://discuss.streamlit.io/u/mathcatsand)\
**Post date:** [January 20, 2023, 10:34pm UTC](https://discuss.streamlit.io/t/unable-to-install-app-in-streamlit-cloud/36415/2 "2023-01-20T22:34:20Z")

</div>

Please share the full error message. You can get it by clicking manage app in the lower, right corner to view the terminal. From the part that I can see, I am guessing you need to correct your `requirements.txt` file.

Anything besides Streamlit that you would need to `pip install` to make your app run needs to be listed in a `requirements.txt` file beside your `main_app.py` file. After you make any changes to your `requirements.txt` file, I recommend doing a manual reboot of your app to avoid carryover of issues.

---

<div class="post-metadata">

**Author:** ![rajasegaran89](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/rajasegaran89/32/22094_2.png) [@rajasegaran89](https://discuss.streamlit.io/u/rajasegaran89)\
**Post date:** [January 21, 2023, 1:13am UTC](https://discuss.streamlit.io/t/unable-to-install-app-in-streamlit-cloud/36415/3 "2023-01-21T01:13:48Z")

</div>

Below with error from streamlit:

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.  
2023-01-21 01:13:03.282 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/binary-classification/app.py”, line 3, in   
import utils  
File “/app/binary-classification/utils.py”, line 4, in   
import sklearn  
ModuleNotFoundError: No module named ‘sklearn’

---

<div class="post-metadata">

**Author:** ![mathcatsand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/mathcatsand/32/48006_2.png) [@mathcatsand](https://discuss.streamlit.io/u/mathcatsand)\
**Post date:** [January 21, 2023, 4:12am UTC](https://discuss.streamlit.io/t/unable-to-install-app-in-streamlit-cloud/36415/4 "2023-01-21T04:12:33Z")

</div>

You need to tell Streamlit Cloud all the things it needs to `pip install` to run your app. You need a `requirements.txt` file that has all those packages listed. Scikit-Learn is not a built-in library; it needs to be installed.

In particular, you must have `scikit-learn` as one of the things in your requirements file.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [January 21, 2024, 4:13am UTC](https://discuss.streamlit.io/t/unable-to-install-app-in-streamlit-cloud/36415/5 "2024-01-21T04:13:19Z")

</div>

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