安装torch-sparse报错,解决方法如下:
- 安装torch-sparse需要对应的依赖关系,请参考官网: https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html
例如1
2
3
4
5pip install torch-scatter==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.5.0.html
pip install torch-sparse==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.5.0.html
pip install torch-cluster==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.5.0.html
pip install torch-spline-conv==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.5.0.html
pip install torch-geometric
注意,选择好对应的版本应该就没有什么大问题了~