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
import streamlit as st
import os
result = os.popen('pip list').read()
st.code(result, language=None)
Where does this assumption come from? What is the error message?
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?
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?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.