# Issues with processing python dependencies in Streamlit Cloud

**URL:** <https://discuss.streamlit.io/t/issues-with-processing-python-dependencies-in-streamlit-cloud/51689>\
**Category:** Community Cloud\
**Created:** [September 18, 2023, 8:17am UTC](https://discuss.streamlit.io/t/issues-with-processing-python-dependencies-in-streamlit-cloud/51689 "2023-09-18T08:17:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![soyrubio](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/soyrubio/32/32188_2.png) [@soyrubio](https://discuss.streamlit.io/u/soyrubio)\
**Post date:** [September 18, 2023, 8:17am UTC](https://discuss.streamlit.io/t/issues-with-processing-python-dependencies-in-streamlit-cloud/51689/1 "2023-09-18T08:17:55Z")

</div>

Hi,  
I’m deploying a streamlit app for the first time. Up until now, I have developed the app locally and everything was working fine. To deploy the app I pushed the python code, including the requirements.txt file for the python dependencies I used in the project. However, upon deployment the dependencies in the `requirements.txt` file are not being installed. I doublechecked if I have misspelled the file, placed it in a bad location (it is placed in the root of my repo where also streamlit’s `app.py` resides).

To check whether this is an issue with a specific dependency, I listed the installed python packages using

```auto
import streamlit as st
import os
result = os.popen('pip list').read()
st.code(result, language=None)

```

I got:

 ![Screenshot 2023-09-18 at 10.14.36](https://global.discourse-cdn.com/streamlit/original/3X/1/c/1c00a1dc8a2c63ee2a95ec945496247b1eeb1307.jpeg)

As you can see, none of the packages in `requirements.txt` (see below) are insalled

```auto
pypdf==3.16.1
PyYAML==6.0
openai

```

When I try to install the requirements.txt locally, everything also runs fine.

Am I missing something here? Thanks for any responses in advance.

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/franky1/32/6509_2.png) [@Franky1](https://discuss.streamlit.io/u/Franky1)\
**Post date:** [September 18, 2023, 8:30am UTC](https://discuss.streamlit.io/t/issues-with-processing-python-dependencies-in-streamlit-cloud/51689/2 "2023-09-18T08:30:41Z")

</div>

Please share a link to your public github repo.

---

<div class="post-metadata">

**Author:** ![soyrubio](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/soyrubio/32/32188_2.png) [@soyrubio](https://discuss.streamlit.io/u/soyrubio)\
**Post date:** [September 18, 2023, 8:35am UTC](https://discuss.streamlit.io/t/issues-with-processing-python-dependencies-in-streamlit-cloud/51689/3 "2023-09-18T08:35:03Z")

</div>

> **[GitHub - soyrubio/proiuris-distrainment](https://github.com/soyrubio/proiuris-distrainment)**
>
> Contribute to soyrubio/proiuris-distrainment development by creating an account on GitHub.

Thank you for the prompt response. The repo was previously private (not sure if that can affect the deployment in this case).

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/franky1/32/6509_2.png) [@Franky1](https://discuss.streamlit.io/u/Franky1)\
**Post date:** [September 18, 2023, 9:25am UTC](https://discuss.streamlit.io/t/issues-with-processing-python-dependencies-in-streamlit-cloud/51689/4 "2023-09-18T09:25:26Z")

</div>

> [@soyrubio](#):
>
> However, upon deployment the dependencies in the `requirements.txt` file are not being installed.

Where does this assumption come from? What is the error message?

> [@soyrubio](#):
>
> As you can see, none of the packages in `requirements.txt` (see below) are insalled

I suspect that the output may be misleading. Maybe the packages are stored under a different user or path that pip does not know. Streamlit itself is not listed, but the app obviously works! What happens if you add for example `import openai` to the code, does this work?

> [@soyrubio](#):
>
> Am I missing something here?

The requirements look fine to me, I also tried them briefly in a docker container. This should theoretically also work on streamlit cloud.  
Therefore, the question again: What is the specific error or error message?

---

<div class="post-metadata">

**Author:** ![soyrubio](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/soyrubio/32/32188_2.png) [@soyrubio](https://discuss.streamlit.io/u/soyrubio)\
**Post date:** [September 18, 2023, 9:49am UTC](https://discuss.streamlit.io/t/issues-with-processing-python-dependencies-in-streamlit-cloud/51689/5 "2023-09-18T09:49:14Z")

</div>

Sorry for not specifying the exact error message. The specific error message is:

`ModuleNotFoundError: No module named 'openai'`

However, openai is listed in requirements.txt.

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/franky1/32/6509_2.png) [@Franky1](https://discuss.streamlit.io/u/Franky1)\
**Post date:** [September 18, 2023, 9:54am UTC](https://discuss.streamlit.io/t/issues-with-processing-python-dependencies-in-streamlit-cloud/51689/6 "2023-09-18T09:54:38Z")

</div>

- I would add `streamlit` to the requirements as well.
- Have you tried a “reboot” of the app?
- Which python version are you using locally?
- Which python version do you have selected on streamlit cloud?

---

<div class="post-metadata">

**Author:** ![soyrubio](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/soyrubio/32/32188_2.png) [@soyrubio](https://discuss.streamlit.io/u/soyrubio)\
**Post date:** [September 19, 2023, 1:27pm UTC](https://discuss.streamlit.io/t/issues-with-processing-python-dependencies-in-streamlit-cloud/51689/7 "2023-09-19T13:27:57Z")

</div>

Rebooting the app solved my issue. I must have changed the requirements after first loading the app. Thanks for your help.

---

<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:** [September 21, 2023, 1:28pm UTC](https://discuss.streamlit.io/t/issues-with-processing-python-dependencies-in-streamlit-cloud/51689/8 "2023-09-21T13:28:01Z")

</div>

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