0

When I type the line below into my PyCharm editor, it says "No module named dgl". If I click install, it gives me an error. I use an Anaconda environment with dgl installed for my configuration. The code calling dlg.DGLGraph() works as it should.

import dgl
g = dgl.DGLGraph()

The only real problem that I am having with it (I can live with my code constantly showing me a warning), is that the autocompletion doesn't work on my PyCharm editor

Marius Kuzm
  • 159
  • 1
  • 9

1 Answers1

0

This problem is that you first install dgl, after this you install pytorch. The correct method for install dgl is that you should first install pytorch, then install dgl. because pytorch is a dependency of dgl.

lvjiujin
  • 501
  • 4
  • 5