No module named DGL

Even though I am running one of the codes present in the DGL library, dgl/examples/pytorch/gcn/train.py, to be specific. It gives the error "No Module named ‘dgl’ ". Can someone please help me out with this?
TIA

Basically this means that you did not successfully install DGL. How did you install it? If you installed it in a virtual environment, you will need to switch to that environment (e.g. a Conda environment).

1 Like

Thanks, there was indeed an installation issue. It works fine now.