解决conda的“Solving environment: failed”问题

1.问题代码

最近conda装软件包的时候一直出现下述问题,网上查了很多解决办法都没解决我这个问题。参见link

Collecting package metadata (current_repodata.json): done
Solving environment: failed with current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
Initial quick solve with frozen env failed.  Unfreezing env and trying again.
Solving environment: failed

2.发现原因

后来查看错误信息的时候发现,原来是为了使用conda-forge的两条命令导致此错误。罪魁祸首是第二句。

conda config --add channels conda-forge
conda config --set channel_priority strict

3.解决办法

conda config --set channel_priority flexible

 

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 技术黑板 设计师:CSDN官方博客 返回首页