直接pip install torch_geometric会报错No module named torch_sparse,之后会有一堆坑等着你
正确的做法如下:
先得去下载torch_sparse、torch_cluster,etc.等其他依赖:
离线包下载
找到自己的环境版本(e.g., torch-1.8.0+cu111)然后下载下面四个.whl:
全部安装完毕就行:
pip install torch_geometric
如果已经安装过了,卸载重装一下:
pip install --upgrade --force-reinstall --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple torch-geometric
可以简单试一下现在可不可以:
没有再报错



