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-scattertorch-sparsetorch-clustertorch-spline-conv等依赖项,也成功安装了torch_geometric,但在导入的时候还是报错:

 原因是没有C++环境,在该网址中https://visualstudio.microsoft.com/visual-cpp-build-tools/下载并安装C/C++ DLL 动态链接库,即可成功使用torch_geometric

 

 
posted @ 2023-11-07 21:37  浮华夕颜  Views(232)  Comments(0Edit  收藏  举报