安装pytorch_geometric


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,会在这个文件夹下写入临时文件,如果权限不够,就写入不了,表现为卡死。

 

强行添加的当前用户+完全控制

 

再安装,完美。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM