macos M系列 安装 torch_geometric torch-sparse torch-cluster torch-scatter 等库

背景

默认电脑已经安装好 Anaconda 环境

笔者配置为 MacBook Pro 14寸

CPU 为 M1 Pro

方法一

针对你的 torch 版本去官网下载对应的 whl 文件然后 pip 安装

地址为: https://pytorch-geometric.com/whl/

下载好后运行指令

bash 复制代码
pip install 下载路径/torch_sparse.......whl

方法二

直接终端输入指令

先安装指定版本的 torch 以 2.0.1为例

bash 复制代码
pip install torch==2.0.1
bash 复制代码
pip install torch_geometric
bash 复制代码
pip --no-cache-dir  install  torch-sparse torch-cluster torch-scatter -f https://data.pyg.org/whl/torch-2.0.1+${cpu}.html

需要安装一会 成功后会显示

bash 复制代码
Successfully built torch-cluster torch-sparse
Installing collected packages: torch-sparse, torch-cluster
Successfully installed torch-cluster-1.6.3 torch-sparse-0.6.18
相关推荐
pe7er3 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep5 天前
mac生效的终端查看
macos
iOS门童6 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~6 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员6 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843946 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei6 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利6 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen6 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c6 天前
如虎添翼-MacOS
macos