conda安装库时报错Solving environment: failed with initial frozen solve. Retrying with flexible solve.

使用tensorflow环境下安装库matplotlib时,报错。

Solving environment: failed with initial frozen solve. Retrying with flexible solve.
... ...

网上搜了很多方法都不行。1.更新conda;2.conda update --all;3.更换conda源。尝试后都不行。

 

 

结果搜到一个方法,尝试后,成功了。原文链接:https://www.jianshu.com/p/4c7b9127cf83

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

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

解决方法:

1 conda config --add channels conda-forge
2 conda config --set channel_priority flexible

 

posted @ 2021-10-04 17:02  Jev_0987  阅读(49602)  评论(5编辑  收藏  举报