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?