Tips On Fixing The Error “Solving environment: failed with initial frozen solve. Retrying with flexible solve”

Are you getting “Solving environment: failed with initial frozen solve. Retrying with flexible solve”? This error can be frustrating, but here’s how to fix it.

Tips On Fixing The Error “Solving environment: failed with initial frozen solve. Retrying with flexible solve”

When using Anaconda, and you cannot utilize the conda install command. It displays the following error message.

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.

Reattempt with flexible solve to solve “Solving environment: failed with first frozen solve” Error. Simply create an env, activate it, and then perform the installation, and your problem will be resolved. 

Here is the commandline: To make env Use the following command: conda create –name myenv. Then, run conda activate myenv to activate the environment. Your issue must now be fixed. The second alternative is Simply change channel priority to false with conda config –set channel_priority false, and my problem was resolved.

Option 1: Utilize env

Simply create an env, activate it, and then perform the installation, and your problem will be resolved. Here’s the commandline.

Utilize this command to create env.

conda create --name myenv
Next, click Activate env.
conda activate myenv

Now, you’ve fixed this error.

Option 2: Deactivate channel_priority

Simply set the channel_priority to false.

conda config --set channel_priority false

and the issue has been fixed.

Option 3: Downgrade conda

Simply downgrade conda then your problem will be resolved. Simply use this command.

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

Option 4: Upgrade conda

If the first three solutions do not work, try updating your Conda by typing this command in the terminal.

conda update --all --yes

Now, you’ve solved this problem.

Conclusion

We hope you enjoyed our article about “Solving environment: failed with initial frozen solve. Retrying with flexible solve”. We know that this error can be frustrating to deal with, so we hope that our information has helped you fix it. 

If you have any other questions or concerns about this error, please leave a comment below. Thank you for reading; we are always excited when one of our posts can provide useful information on a topic like this!


Related Articles
Scroll to Top