網站首頁 編程語言 正文
寫在前面
1 不能簡單的直接pip install torch_geometric或者 conda install torch_geometric
2 直接安裝,到后面調用的時候還是會報錯.需要先安裝四個小部件再安裝torch_geometric
STEP 1 : 首先檢查自己的pytorch版本
Import torch torch.__version__ #查看cpu版本 torch.version.cuda #查看gpu版本
在notebook里查看是這樣的
也可以在Anaconda Prompt中python下查看
STEP 2 : 下載四個小部件
在這里找到自己對應的版本點進去,會自動跳轉出所有和你版本合適的部件
https://pytorch-geometric.com/whl/
點進去進入了下一個頁面
選擇適合你的,點一下就下載了
我這里選擇的是
torch_cluster-1.5.9-cp38-cp38-win_amd64.whl
torch_scatter-2.0.8-cp38-cp38-win_amd64.whl
torch_sparse-0.6.12-cp38-cp38-win_amd64.whl
torch_spline_conv-1.2.1-cp38-cp38-win_amd64.whl
(**注意:**這里有幾個盡量不要選擇最高版本,因為在安裝時會報錯。如果安裝時報錯了,就回到這一步,重新下載,繼續按照下面步驟進行就可以了!)
STEP 3 : 如果直接pip install 四個文件名 ,會報錯說找不到文件,就像這樣
所以需要把這四個文件放在你的安裝路徑下面
在你剛才下載的位置找到這四個文件,放到你上面報錯的路徑中
STEP 4 : 開始安裝
回到Anaconda Prompt,在你要安裝的環境下
pip intall+你的文件名.Whl,如:
pip install torch_cluster-1.5.9-cp38-cp38-win_amd64.whl
pip install torch_scatter-2.0.8-cp38-cp38-win_amd64.whl
pip install torch_sparse-0.6.12-cp38-cp38-win_amd64.whl
pip install torch_spline_conv-1.2.1-cp38-cp38-win_amd64.whl
最后,安裝torch_geometric
pip intall torch_geometric
完成了!!!
總結
原文鏈接:https://blog.csdn.net/weixin_47779152/article/details/120570367
相關推薦
- 2022-07-28 Redis基本數據類型Set常用操作命令_Redis
- 2023-12-08 Can‘t open the append-only file: Permission denied
- 2022-03-30 詳解Python的多任務進程_python
- 2022-06-14 C#使用正則表達式_C#教程
- 2022-01-15 let、var、const區別
- 2023-01-28 Shell中的單中括號和雙中括號的用法詳解_Linux
- 2022-06-21 Windows下安裝Git_其它綜合
- 2022-04-09 Maven 編譯提示:spring-boot-maven-plugin:2.1.9.RELEASE
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支