https://pytorch-geometric.readthedocs.io/en/latest/
https://github.com/rusty1s/pytorch_geometric
pip install torch-scatter==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.6.0.html pip install torch-sparse==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.6.0.html pip install torch-cluster==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.6.0.html pip install torch-spline-conv==latest+cu102 -f https://pytorch-geometric.com/whl/torch-1.6.0.html pip install torch-geometric
cpu版
pip install torch-scatter==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.6.0.html pip install torch-sparse==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.6.0.html pip install torch-cluster==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.6.0.html pip install torch-spline-conv==latest+cpu -f https://pytorch-geometric.com/whl/torch-1.6.0.html pip install torch-geometric
遇到奇怪问题,不用管理员权限安装不上,
pip时提示
Defaulting to user installation because normal site-packages is not writeable
安装上了,也必须用管理员身份启动控制台才能运行。
太蛋疼了。后来发现是
C:\Program Files\Python38
的写入权限,不对。
而pytorch geometric 背后隐含调用的numba,会在这个文件夹下写入临时文件,如果权限不够,就写入不了,表现为卡死。
强行添加的当前用户+完全控制
再安装,完美。