import torch_geometric报错Could not find module '...\torch_sparse\_convert_cpu.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
按照官网步骤安装完torch-scatter
、torch-sparse
、torch-cluster
和torch-spline-conv等依赖项,也成功安装了torch_geometric,但在导入的时候还是报错:
原因是没有C++环境,在该网址中https://visualstudio.microsoft.com/visual-cpp-build-tools/下载并安装C/C++ DLL 动态链接库,即可成功使用torch_geometric