Environment or configuration on Streamlit Cloud

requirement file

python==3.9
streamlit==0.83.0
plotly==5.3.1
seaborn
matplotlib

getting error

[     UTC     ] Logs for summer-olympics-2016-mvnrsv7.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[18:08:42] 🚀 Starting up repository: 'summer-olympics-2016', branch: 'main', main module: 'app.py'
[18:08:42] 🐙 Cloning repository...
[18:08:47] 🐙 Cloning into '/mount/src/summer-olympics-2016'...
[18:08:47] 🐙 Cloned repository!
[18:08:47] 🐙 Pulling code changes from Github...
[18:08:48] 📦 Processing dependencies...

──────────────────────────────────────── pip ───────────────────────────────────────────

ERROR: Could not find a version that satisfies the requirement python==3.9 (from versions: none)
ERROR: No matching distribution found for python==3.9
WARNING: You are using pip version 22.0.3; however, version 23.2.1 is available.
You should consider upgrading via the '/home/adminuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed

────────────────────────────────────────────────────────────────────────────────────────

[18:08:50] ❗️ installer returned a non-zero exit code
[18:08:50] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[18:10:23] ❗️ Streamlit server consistently failed status checks
[18:10:23] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

Don’t include python in requirements.txt file. It’s not a pip package! Python comes by default in streamlit cloud.
Also, a tip try to use a newer/latest streamlit version.

The error indicates an issue with your Python version specification. Streamlit doesn’t require specifying the Python version in the requirements file. Remove the line python==3.9 from your requirements.txt, and then redeploy your app. Streamlit will use the appropriate Python version on its own.

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