Installation problem

Hi, everyone!
I have tried many times to uninstall and use ‘pip install dgl -f https://data.dgl.ai/wheels/cu121/repo.html’ to install dgl, but the version I installed is still 2.2.1, and I still received the error “Device API cuda is not enabled. Please install the cuda version of dgl.”
Does anyone have a solution?

Thanks a lot!

We’ve update the package path and it’s per torch version such as pip install dgl -f https://data.dgl.ai/wheels/torch-2.3/cu121/repo.html. Please refer to Deep Graph Library for details.

Thank you for your answer, but I still meet the error “Please install the cuda version of dgl.”

Screenshot 2024-05-23 145808

I think for windows, refer to Deep Graph Library, the command is pip install dgl -f https://data.dgl.ai/wheels/cu121/repo.html, but in https://data.dgl.ai/wheels/cu121/repo.html, there is no such package for windows.

the problem may be same as this: Device API cuda is not enabled for Python 3.11 and CUDA 12.1 - #3 by Rhett-Ying

Are you working on Windows platform?

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