使用pip安装,mac不能使用cuda,所以使用下面的命令:
pip install torch-sparselatest+cpu -f https://pytorch-geometric.com/whl/torch-1.6.0.html
pip install torch-clusterlatest+cpu -f https://pytorch-geometric.com/whl/torch-1.6.0.html
参考:
https://zhuanlan.zhihu.com/p/187296063