ModuleNotFoundError: No module named 'dgl.graphbolt'

Firstly,when i installed dgl,and then it occured this problems:

“FileNotFoundError: Cannot find DGL C++ sparse library at D:\Anaconda\envs\DL\lib\site-packages\dgl\dgl_sparse\dgl_sparse_pytorch_2.2.2.dll”

then i found this file,and put it to the right place,but it occured another problems:“ModuleNotFoundError: No module named ‘dgl.graphbolt’”

i have these in my env:
pytorch-cuda 11.8
torch 2.2.2+cu118
torchaudio 2.2.2+cu118
torchdata 0.8.0
torchvision 0.17.2+cu118
dgl 1.1.2+cu118

And also,i create another env,versions i have in my env:
pytorch-cuda 11.8
torch 2.3.1+cu118
torchaudio 2.3.1+cu118
torchvision 0.18.1+cu118
dgl 1.1.2+cu118
it occured this problems: “FileNotFoundError: Cannot find DGL C++ sparse library at D:\Anaconda\envs\DL\lib\site-packages\dgl\dgl_sparse\dgl_sparse_pytorch_2.3.1.dll”
And i can’t find this file in my computer.

Any help would be appreciated thanks!

1 Like

I am experiencing the same issue. Can someone give steps for installing DGL? The documentation is not being helpful.

What versions of the dependencies are needed?

1 Like

graphbolt was launched in DGL2.0, please follow instructions here to install the latest version of DGL. Deep Graph Library

i changed torch version,and it did not occur this problem again,it just lacks some packings. i don’t know if this works .in this web site: Deep Graph Library (dgl.ai),it talks windows uses 2.0 2.1 torch version.so the following is my env:openhgnn2
torch 2.0.0+cu118
torchaudio 2.0.0+cu118
torchdata 0.6.0
torchvision 0.15.0+cu118
dgl 1.1.2+cu118

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