Skip to content

Commit 2d7e2f2

Browse files
committed
drop PyTorch CPU index URL and loosen torch pins for Python 3.14
Streamlit Cloud runs Python 3.14 regardless of runtime.txt, and the PyTorch CPU index (download.pytorch.org/whl/cpu) returns 403 on their servers. PyPI only carries torch>=2.9 for Python 3.14, so pinning torch==2.6.0+cpu was guaranteed to fail. Remove the --extra-index-url entirely and let pip resolve torch and torchvision freely from PyPI. Loosen streamlit to >=1.35 so the same constraint applies on whatever Python Streamlit Cloud happens to deploy.
1 parent 1d0f98c commit 2d7e2f2

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

requirements.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# Streamlit Cloud deployment — CPU-only PyTorch
1+
# Streamlit Cloud deployment — CPU-only PyTorch (Python 3.14 compatible)
22
# Only direct dependencies are pinned; transitive deps resolve automatically.
33
# For full local reproducibility with GPU use requirements_dev.txt
4-
--extra-index-url https://download.pytorch.org/whl/cpu
5-
streamlit==1.55.0
6-
torch==2.6.0+cpu
7-
torchvision==0.21.0+cpu
4+
streamlit>=1.35
5+
torch>=2.0
6+
torchvision>=0.15
87
numpy>=1.26,<3
98
pandas>=2.0
109
pillow>=10.0

0 commit comments

Comments
 (0)