CoLA icon indicating copy to clipboard operation
CoLA copied to clipboard

救命,大佬求dgl0.4.0包

Open sethGu opened this issue 2 years ago • 7 comments

大佬求dgl0.4.0包,试了两天都装不上,救命

sethGu avatar Jun 21 '22 18:06 sethGu

大佬求dgl0.4.0包,试了两天都装不上,救命

you can just run follow codes: pip install dgl==0.4.0

yzfxmu avatar Jun 30 '22 08:06 yzfxmu

试过了不行

sethGu avatar Jul 11 '22 17:07 sethGu

试过了不行

我这边可以正常安装的

yzfxmu avatar Jul 22 '22 03:07 yzfxmu

To satisfy the dependency for dgl 0.4.0, you can build dgl from source and install it in your system using the following commands:

==> git clone --recurse-submodules https://github.com/dmlc/dgl.git ==> cd dgl ==> git checkout v0.4.0 ==> git submodule init ==> git submodule update ==> mkdir build ==> cd build ==> cmake -DUSE_OPENMP=off -DCMAKE_C_FLAGS='-DXBYAK_DONT_USE_MAP_JIT' -DCMAKE_CXX_FLAGS='-DXBYAK_DONT_USE_MAP_JIT' -DUSE_AVX=OFF -DUSE_LIBXSMM=OFF .. ==> make -j4 ==> cd ../python ==> python setup.py install

Executing these commands will satisfy the dependency.

To deal with compatibility issues for various platforms for the above build, you can check out this answer and add the appropriate flag in the CMake command:

https://stackoverflow.com/questions/5334095/cmake-multiarchitecture-compilation

I was building it for MacBook Air M1 and used the following command: cmake -DUSE_OPENMP=off -DCMAKE_C_FLAGS='-DXBYAK_DONT_USE_MAP_JIT' -DCMAKE_CXX_FLAGS='-DXBYAK_DONT_USE_MAP_JIT' -DUSE_AVX=OFF -DUSE_LIBXSMM=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 ..

This made the build compatible for x86-64 architecture.

rvbugs0 avatar Jan 02 '23 15:01 rvbugs0

Just be sure you use python3.7. Higher level versions may not find dgl 0.4.0

Switchsyj avatar Mar 08 '23 09:03 Switchsyj

有人解决了这个问题吗,救救我呜呜呜呜

zhouyuuu avatar Sep 28 '23 09:09 zhouyuuu

pip install dgl==0.4.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

HXFlowerSea avatar Dec 11 '23 15:12 HXFlowerSea