Cannot Pip install DGL 2.4.0 with Torch2.4.1
- Dominant language
- Python
- Stars
- 14.3k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
## 🐛 Bug
`ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
dgl 2.4.0+cu121 requires torch<=2.4.0, but you have torch 2.4.1+cu121 which is incompatible.`
## To Reproduce
Steps to reproduce the behavior:
1. python version 3.11
2. pip install dgl==2.4.0 -f https://data.dgl.ai/wheels/torch-2.4/cu121/repo.html
3. pip install torch==2.4.1 --index-url https://download.pytorch.org/whl/cu121
## Expected behavior
According to DGL website, torch 2.4.* works with DGAL 2.4.0, it appears that pip's dependency resolver has a rule requires torch<=2.4.0.
## Environment
- DGL Version (e.g., 1.0): 2.4
- Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3): PyTorch 2.4.1
- OS (e.g., Linux): Linux
- How you installed DGL (`conda`, `pip`, source): pip
- Build command you used (if compiling from source):
- Python version: 3.11
- CUDA/cuDNN version (if applicable): 12.1
- GPU models and configuration (e.g. V100):
- Any other relevant information:
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.