pytorch安装换源ubuntu_ubuntu 安装pytorch问题

由于之前pytorch安装在base环境中,现在弄了个新环境py37env,想在上面安装pytorch

但是这次安装出现了一点问题

v2-3f700960dfe23210e7ace224ac8a641a_b.jpg

报错说

Found conflicts! Looking for incompatible packages.

真是让人脑壳一紧,对我这种小白来说什么问题都很麻烦。

他不仅报错说一些包不兼容,还帮我开始看哪些包不兼容,找了半天找出来一大堆不兼容的。

v2-74d9c5c0c5f875b78c2fafa5ede78295_b.jpg

这感觉太酸爽了

按报错内容在网上找了找,看到yiyinying的回答

ubuntu conda · Issue #226 · pytorch/botorch​github.com
v2-2b69048deeb1ce5914dc891d7aa149e7_ipico.jpg
@yiyinying, I ran into the same problem on Ubuntu. It seems that installing gpytorch explicitly first solves the issue:
conda create --name botorch_virign
conda install -c gpytorch gpytorch
conda install -c pytorch botorch
Not quite sure what's going on there, the botorch install works fine on OSX. We'll make sure to fix this in the upcoming compatibility release, for now the above workaround should unblock you.

他按这个方法解决了,但是也不知道到底为什么。。。

tm计算机真是个玄学。

我先在另一个环境中试了一下,直接安装这个gpytorch,他顺带把torch帮我下下来了

conda install -c gpytorch gpytorch

v2-0d842780a08e8992df7c9160a683969d_b.jpg

v2-7cb52bce593c0ee0ac106423f398af45_b.jpg

然后我又去我想安装pytorch的那个环境里试了一下

v2-ed16c676f6c71ce690f120b55e6a57de_b.jpg

还算顺利!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值