问题:
参考:
- win10下python3安装torch_scatter、torch_sparse出错的解决方案:https://blog.csdn.net/wangs1996/article/details/96424937(对我无用)
- https://github.com/rusty1s/pytorch_geometric/issues/87
- 提供一个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记录和日期:
以下方法可以解决,但是以下 .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 文件,也运行的时候可能就会出现问题。
我的出现了问题,但不知道到底是因为什么出了问题,我太难了。。