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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM