安装前,我们要先查看一下自己的pytorch版本和cuda版本
切换到相应环境
conda activate 环境名
然后输入命令查看所安装的库
conda list
找到torch
记住版本号,然后我们用pip命令进行安装
分别输入
pip install torch-scatter -f https://data.pyg.org/whl/torch-版本号.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-版本号.html
pip install torch-geometric
等待片刻就完成了