在安装使用torch-geometric时遇到了如题的报错。查了查有些博文说是torch的多版本问题,但在GitHub上有人说这个问题在torch 1.6版本后已经解决。最后发现是torch-sparse等库的版本不对,与torch版本不统一。解决方法为卸载与torch-geometric相关的几个库(torch-scatter,torch-sparse,torch-cluster,torch-spline-conv)以及torch-geometric并使用
conda install pytorch-geometric -c rusty1s -c conda-forge
重新安装。最终问题解决。
再次衷心感谢conda