详细请参考:https://blog.youkuaiyun.com/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就不会报错

本文详细介绍了如何正确安装torch_geometric库,强调不能直接使用pip或conda安装。首先,需要单独安装四个依赖组件,然后从官方网址下载与PyTorch版本匹配的whl文件。在安装过程中遇到certifi冲突的问题,解决方法是先使用pip安装certifi并忽略已安装的版本,随后再次安装torch_geometric即可成功。
2496

被折叠的 条评论
为什么被折叠?



