Fix PyTorch pip version tags
Browse files- Dockerfile +3 -3
- requirements.txt +2 -2
Dockerfile
CHANGED
|
@@ -25,14 +25,14 @@ RUN apt-get update && apt-get install -y \
|
|
| 25 |
USER user
|
| 26 |
|
| 27 |
# 1. Install PyTorch FIRST (Required for PyG C++ extensions)
|
| 28 |
-
RUN pip install --no-cache-dir --user torch==2.
|
| 29 |
|
| 30 |
# 2. Install PyTorch Geometric dependencies (Sparse/Scatter) natively from PyG wheel index
|
| 31 |
-
RUN pip install --no-cache-dir --user torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.
|
| 32 |
|
| 33 |
# 3. Copy requirements and install the rest (It will skip torch and torch-scatter since they are already installed)
|
| 34 |
COPY --chown=user:user requirements.txt .
|
| 35 |
-
RUN pip install --no-cache-dir --user -r requirements.txt -f https://data.pyg.org/whl/torch-2.
|
| 36 |
|
| 37 |
# Copy the rest of the application
|
| 38 |
COPY --chown=user:user . .
|
|
|
|
| 25 |
USER user
|
| 26 |
|
| 27 |
# 1. Install PyTorch FIRST (Required for PyG C++ extensions)
|
| 28 |
+
RUN pip install --no-cache-dir --user torch==2.10.0 torchvision==0.25.0 --extra-index-url https://download.pytorch.org/whl/cpu
|
| 29 |
|
| 30 |
# 2. Install PyTorch Geometric dependencies (Sparse/Scatter) natively from PyG wheel index
|
| 31 |
+
RUN pip install --no-cache-dir --user torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.10.0+cpu.html
|
| 32 |
|
| 33 |
# 3. Copy requirements and install the rest (It will skip torch and torch-scatter since they are already installed)
|
| 34 |
COPY --chown=user:user requirements.txt .
|
| 35 |
+
RUN pip install --no-cache-dir --user -r requirements.txt -f https://data.pyg.org/whl/torch-2.10.0+cpu.html
|
| 36 |
|
| 37 |
# Copy the rest of the application
|
| 38 |
COPY --chown=user:user . .
|
requirements.txt
CHANGED
|
@@ -11,8 +11,8 @@ joblib
|
|
| 11 |
|
| 12 |
# Neural Networks & Vision
|
| 13 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 14 |
-
torch==2.
|
| 15 |
-
torchvision==0.
|
| 16 |
segmentation-models-pytorch==0.5.0
|
| 17 |
torch-geometric==2.7.0
|
| 18 |
torch-geometric-temporal==0.56.2
|
|
|
|
| 11 |
|
| 12 |
# Neural Networks & Vision
|
| 13 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 14 |
+
torch==2.10.0
|
| 15 |
+
torchvision==0.25.0
|
| 16 |
segmentation-models-pytorch==0.5.0
|
| 17 |
torch-geometric==2.7.0
|
| 18 |
torch-geometric-temporal==0.56.2
|