【踩坑】Linux下配置torch-geometric

搞了整整一天终于配置好了。。。= =


1、创建虚拟环境

  1. conda create -n xxx python=3.6.11
  2. conda activate xxx

2、conda install pytorch=1.4 pytorch官网的指令安装的是最新版本,不适配!!!后面会安装不上torch-geometric库

3、两种方法:(我是使用方法二成功的)

  1. 使用官方文档里的方法无脑依次进行检查并安装torch-geometric等库。。。
  2. 官方方法无效,使用官方文档方法直到验证完版本信息后,不再使用文档内的安装语句,使用如下语句 改成自己需要的版本后,进行安装。
pip install torch-scatter==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.5.0.html
pip install torch-sparse==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.5.0.html
pip install torch-cluster==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.5.0.html
pip install torch-spline-conv==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.5.0.html
python setup.py install or
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值