安装torch-cluster torch-sparse torch-scatter 等GPU版

1.版本对应

最重要的是与pytorch,cuda,版本对应

先在这个网址找到你的pytorch gpu版本https://pytorch-geometric.com/whl/

再进去选择你的cu(cuda)版本,

比如我是 python37 cuda=11.6 pytorch 1.31.1

就对应安装

torch-cluster 1.6.0+pt113cu116

torch-geometric 2.2.0

torch-scatter 2.0.9

torch-sparse 0.6.15+pt113cu116

torch-spline-conv 1.2.1+pt113cu116

命令实例(python39 cuda11.7 torch1.13.1)

pip install https://data.pyg.org/whl/torch-1.13.0%2Bcu117/torch_spline_conv-1.2.1%2Bpt113cu117-cp39-cp39-linux_x86_64.whl
pip install https://data.pyg.org/whl/torch-1.13.0%2Bcu117/torch_sparse-0.6.16%2Bpt113cu117-cp39-cp39-linux_x86_64.whl

你可能感兴趣的:(深度学习,强化学习,深度学习,pytorch,python)