failed build torch_scatter.whl

问题:

在这里插入图片描述
在这里插入图片描述

参考:

  1. win10下python3安装torch_scatter、torch_sparse出错的解决方案:https://blog.csdn.net/wangs1996/article/details/96424937(对我无用)
  2. https://github.com/rusty1s/pytorch_geometric/issues/87
  3. 提供一个whl文件的下载网址:http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml(并没有torch_scatter的)
搜索方案一:

ERROR: Failed building wheel for torch-scatter #370: https://github.com/rusty1s/pytorch_geometric/issues/287(对我没用)在这里插入图片描述

搜索方案二 :

Error Installing on Windows 10 with python3.6.1 : https://github.com/pygraphviz/pygraphviz/issues/121

这些库每个版本的release记录和日期:
  1. https://github.com/rusty1s/pytorch_scatter/releases
  2. https://github.com/rusty1s/pytorch_sparse/releases
  3. https://github.com/rusty1s/pytorch_cluster/releases
  4. torch-spline-conv :
  5. https://github.com/rusty1s/pytorch_geometric/releases
以下方法可以解决,但是以下 .whl文件 是pytorch1.4、1.5、1.6、1.7的,没有pytorch1.1, 1.2的:
1. 到官网找到这几个包的.whl文件,即编译好的各种torch_二进制包:https://github.com/rusty1s/pytorch_sparse

在这里插入图片描述

2. 下载你需要的,跟你环境匹配的.whl文件

在这里插入图片描述
在这里插入图片描述

3. pip install + 刚才下载的.whl 文件的名字

pip install torch_sparse-0.6.2+cu102-cp37-cp37m-win_amd64.whl

4. 安装成功:在这里插入图片描述
6. 问:与Pytorch1.1匹配的 torch_geometric版本是什么?

上面提到的编译好的二进制文件,都是Pytorch1.4、Pytorch1.5、Pytorch1.6、Pytorch1.7的,并没有pytorch1.1的,所以,如果pytorch1.1装了Pytorch1.4的系列 .whl 文件,也运行的时候可能就会出现问题。

我的出现了问题,但不知道到底是因为什么出了问题,我太难了。。

在这里插入图片描述

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值