【问题标题】:How to force conda to skip examining conflicts?如何强制 conda 跳过检查冲突?
【发布时间】:2021-10-19 11:35:51
【问题描述】:

我正在尝试安装conda install -c conda-forge opencv --no-deps --no-update-deps,但examining conflicts 需要很长时间。我在网上发现这是一个没有好的解决方案的已知问题。

是否可以强制 Conda 完全跳过这一步?对于我的特殊情况,甚至简单地用二进制文件解压存档也可能会起作用。

【问题讨论】:

  • 我不知道conda install 有任何选项可以完成工作。您尝试过mamba 或创建新环境吗?

标签: installation conda conflicting-libraries


【解决方案1】:

禁用不可满足的提示

这些冲突报告的 Conda 术语是不满意的提示,并且有一个配置选项可以切换它们的报告:

$ conda config --describe unsatisfiable_hints
# # unsatisfiable_hints (bool)
# #   A boolean to determine if conda should find conflicting packages in
# #   the case of a failed install.
# # 
# unsatisfiable_hints: true

要禁用它们,请设置

conda config --set unsatisfiable_hints false

【讨论】:

    猜你喜欢
    • 2021-12-24
    • 1970-01-01
    • 1970-01-01
    • 2020-09-15
    • 2021-06-17
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多