当“解决环境"问题时,conda会做什么? [英] What does conda do when "solving environment"
问题描述
每当我运行conda install/remove/update <package>
时,它都会告诉我它是解决环境"一段时间,然后才告诉我要下载/安装/更新的内容列表.大概是在寻找<package>
的依赖项,但是为什么有时执行此操作后有时删除包呢?例如,当我尝试安装Mayavi时,它决定需要删除Anaconda Navigator.
Whenever I run conda install/remove/update <package>
, it tells me it's "Solving environment" for some time before telling me the list of things it's going to download/install/update. Presumably it's looking for dependencies for <package>
, but why does it sometimes remove packages after doing this operation? For example, as I was trying to install Mayavi, it decided it needed to remove Anaconda Navigator.
此外,它不提供仅执行建议操作的子集的选项.有没有一种方法可以指定我不希望删除软件包?
Furthermore it does not provide an option to perform only a subset of the suggested operations. Is there a way to specify that I don't want a package removed?
推荐答案
您可以在conda命令中添加--debug
选项,并查看控制台(或终端)的输出.例如,键入conda update --debug numpy
.
从输出中,我们可以看到客户端从频道列表中请求repodata.json
并在Solving Environment
步骤中本地进行一些计算.
You can add --debug
option to the conda command and see the output from console(or terminal). For example, type conda update --debug numpy
.
From the output, we can see that the client requests repodata.json
from channel list and do some computation locally in the Solving Environment
Step.
这篇关于当“解决环境"问题时,conda会做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!