由于之前pytorch安装在base环境中,现在弄了个新环境py37env,想在上面安装pytorch
但是这次安装出现了一点问题
报错说
Found conflicts! Looking for incompatible packages.
真是让人脑壳一紧,对我这种小白来说什么问题都很麻烦。
他不仅报错说一些包不兼容,还帮我开始看哪些包不兼容,找了半天找出来一大堆不兼容的。
这感觉太酸爽了
按报错内容在网上找了找,看到yiyinying的回答
ubuntu conda · Issue #226 · pytorch/botorchgithub.com@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
然后我又去我想安装pytorch的那个环境里试了一下
还算顺利!