Skip to content

Commit fd3813d

Browse files
authored
FIX: Set 2.0.0<=pytorch<=2.6.0 to avoid conflicts with networkx with Python 3.9 (#1318)
1 parent 22315be commit fd3813d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Install pip requirements
3737
run: >
3838
pip install uv &&
39-
uv pip install --system -i https://download.pytorch.org/whl/cpu torch &&
39+
uv pip install --system -i https://download.pytorch.org/whl/cpu "torch>=2.0.0,<=2.6.0" &&
4040
uv pip install --system "numpy<2" ".[dev]"
4141
4242
- name: Tests

environment-cpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
- optuna
1616
- pandas>=1.3.5
1717
- pyarrow
18-
- pytorch>=2.0.0
18+
- pytorch>=2.0.0,<=2.6.0
1919
- pytorch-lightning>=2.0.0
2020
- pip
2121
- s3fs

environment-cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
- optuna
1616
- pandas>=1.3.5
1717
- pyarrow
18-
- pytorch>=2.0.0
18+
- pytorch>=2.0.0,<=2.6.0
1919
- pytorch-cuda>=11.8
2020
- pytorch-lightning>=2.0.0
2121
- pip

settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ language = English
1515
custom_sidebar = True
1616
license = apache2
1717
status = 2
18-
requirements = coreforecast>=0.0.6 fsspec numpy>=1.21.6 pandas>=1.3.5 torch>=2.0.0 pytorch-lightning>=2.0.0 ray[tune]>=2.2.0 optuna utilsforecast>=0.2.3
18+
requirements = coreforecast>=0.0.6 fsspec numpy>=1.21.6 pandas>=1.3.5 torch>=2.0.0,<=2.6.0 pytorch-lightning>=2.0.0 ray[tune]>=2.2.0 optuna utilsforecast>=0.2.3
1919
spark_requirements = fugue pyspark>=3.5
2020
aws_requirements = fsspec[s3]
2121
dev_requirements = black fastcore<=1.7.29 gitpython hyperopt ipython<=8.32.0 matplotlib mypy nbdev==2.3.25 polars pre-commit pyarrow ruff s3fs transformers

0 commit comments

Comments
 (0)