安裝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