前言:
前两天原想在笔记本上安装GPU版的pytorch来使用torch_geometric,删了原来的torch,再安装就出现各种问题。找不到torch_scatter.scatter_cpu、不能调用安装后又torch_scatter的函数、C++工具等等各种各样的问题。后面发现是torch、torch_scatter、torch_sparse的版本冲突。最后使用torch-1.4(GPU),torch_scatter(2.0),torch_sparse(0.6)、torch_geometric(1.4)的whl文件解决了问题。
总结:
查了很多网上教程,适合自己的比较少,一定要多看文档。
少随便更改包版本!!!
whl大法真的好!!!
安装:
【setup.py 文件命令】python setup.py install
【whl文件命令】pip install 包名.whl
1、清华镜像
https://pypi.tuna.tsinghua.edu.cn/simple/
2、Unofficial Windows Binaries for Python Extension Packages
【whl】