记录一下在m1pro和win10上安装torch-geometric

m1pro

参考了这个issue的一个回答https://github.com/rusty1s/pytorch_scatter/issues/241

这个老哥是M1 Max + MacOS 13.0.1,我的设备是M1 Pro + MaxOS 12.3.1,亲测有用

conda create -n pyg-m1 python=3.10

conda activate pyg-m1

pip install --no-cache-dir torch==1.13.0 torchvision torchaudio
pip install git+https://github.com/rusty1s/pytorch_sparse.git
pip install git+https://github.com/rusty1s/pytorch_scatter.git
pip install git+https://github.com/rusty1s/pytorch_cluster.git

pip --no-cache-dir install torch-geometric

win10

一样的哈 都是从头创建一个环境,依次安装torch和torch-geometric需要的依赖

从头来的好处就是不用管之前装没装torch,装了啥版本的,就这一套完事儿

conda create -n pyg python=3.8 -y

conda activate pyg

pip install torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.1.0+cpu.html

pip install torch_geometric

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值