详细请参考:https://blog.csdn.net/weixin_47779152/article/details/120570367
安装torch_geometric要点:
1 不能简单的直接pip install torch_geometric
或者 conda install torch_geometric
2 直接安装,到后面调用的时候还是会报错.需要先安装四个小部件
再安装torch_geometric
3 根据自己的pytorch版本号下载对应的轮子
:https://pytorch-geometric.com/whl/
4 pip intall+分别四个小部件的名称.Whl(为了方便,进入四个小部件所在的文件夹下安装)
5 安装torch-geometric: pip install torch-geometric
最后一步时遇到了以下报错:
ERROR: Cannot uninstall 'certifi'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决办法请参考ERROR: Cannot uninstall ‘certifi‘.
- 第一步:
pip install certifi --ignore-installed
- 第二步:运行完该命令后再次用
pip install torch-geometric
就不会报错