I am trying to deploy my Streamlit app to Google App Engine (GAE) using the flex environment. Here is my app.yaml :
runtime: python
env: flex
runtime_config:
python_version: 3
entrypoint: streamlit run src/main.py --server.port $PORT
The first thing I did before attempting to deploy the app was the install the libraries listed in the requirements.txt file using:
python3 -m pip install -r requirements.txt
Next I attempted to deploy the app to GAE using this:
gcloud app deploy
When I run gcloud app deploy
and include this line streamlit-image-select
in the requirements.txt
file I receive this error during the deployment process:
ERROR: Could not find a version that satisfies the requirement streamlit-image-select (from -r requirements.txt (line 31))
(from versions: none)
Step #2: ERROR: No matching distribution found for streamlit-image-select (from -r requirements.txt (line 31))
When I run gcloud app deploy
and exclude this line streamlit-image-select
from the requirements.txt
file the app returns this error:
ModuleNotFoundError: No module named ‘streamlit_image_select’
I even tried to install streamlit-image-select
manually with this command and it reported that the requirement was already satisfied:
PS D:\Source\Canlii> C:\Users\Daniel.pyenv\pyenv-win\versions\3.11.0b4\python3.exe -m pip install streamlit-image-select
Requirement already satisfied: streamlit-image-select in c:\users\daniel.pyenv\pyenv-win\versions\3.11.0b4\lib\site-packages (0.6.
0)
What am I doing wrong?