1. 问题描述

在conda install 软件包时出现Solving environment: failed with initial frozen solve. Retrying with flexible solve.而导致无法安装软件。

2. 解决方法

方法①:新建一个虚拟环境,但原先出现问题仍无法安装,可以在新的虚拟环境中安装。

conda create --name myenv
conda activate myenv

方法②:设置channel_priority 为false

conda config --set channel_priority false

方法③:降低conda版本

conda config --set allow_conda_downgrades true
conda install conda=4.6.14

3. 如果上述三个方法都无法解决,试试更新一下conda

conda update --all --yes

4. 参考:https://exerror.com/solving-environment-failed-with-initial-frozen-solve-retrying-with-flexible-solve/icon-default.png?t=M4ADhttps://exerror.com/solving-environment-failed-with-initial-frozen-solve-retrying-with-flexible-solve/

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐