一、DGL庫的安裝
1、從dgl的發布網站獲取安裝命令:DGL
conda install -c dglteam dgl # For CPU Build conda install -c dglteam dgl-cuda9.0 # For CUDA 9.0 Build conda install -c dglteam dgl-cuda10.0 # For CUDA 10.0 Build conda install -c dglteam dgl-cuda10.1 # For CUDA 10.1 Build conda install -c dglteam dgl-cuda10.2 # For CUDA 10.2 Build
2、從清華鏡像源中先下載好對應python版本的dgl文件,再使用pip install 命令安裝
清華鏡像源地址:https://pypi.tuna.tsinghua.edu.cn/simple/
按Ctrl + F 搜索dgl,找到dgl目錄,找到對應版本的dgl文件,有cpu和cuda兩種版本。