TrustAGI-Lab/CoLA

救命,大佬求dgl0.4.0包

Opened this issue · 7 comments

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

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

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

试过了不行

试过了不行

我这边可以正常安装的

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.

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

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