close

[Solved] Solving environment: failed with initial frozen solve. Retrying with flexible solve

To solve Solving environment: failed with initial frozen solve. Retrying with flexible solve You need to install a pip package in an environment so that Just creating a new environment and then activating it will resolve this error.

How Solving environment: failed with initial frozen solve. Retrying with flexible solve Error Occurs ?

I am using anaconda and I cannot use conda install command It gives me the following error.

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.

Solution 1: Use env

Just create an env and activate that env and then do the install and your error will be solved. Here is the command line.

To create env Use this command.

conda create --name myenv

Then do Activate env.

conda activate myenv

Now, Your error must be solved.

Solution 2: set channel_priority to false

Just set channel_priority to false.

conda config --set channel_priority false

and my error solved

Solution 3: downgrade conda

Just downgrade conda and Your error will be solved. Just use this command.

conda config --set allow_conda_downgrades true

Then,

conda install conda=4.6.14

Solution 4: update conda

If the above 3 Solutions are not working Then Just try to update your Conda by running this command in your terminal.

conda update --all --yes

Now, Your error must be solved.

Frequently Asked Questions

  1. How To Solve Solving environment: failed with initial frozen solve. Retrying with flexible solve Error ?

    To Solve Solving environment: failed with initial frozen solve. Retrying with flexible solve Error Just create an env and activate that env and then do the install and your error will be solved. Here is commandline. To create env Use this command: conda create –name myenv Then do Activate env: conda activate myenv Now, Your error must be solved. Second solution is Just set channel_priority to false: conda config –set channel_priority false and my error solved.

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

    To Solve Solving environment: failed with initial frozen solve. Retrying with flexible solve Error Just create an env and activate that env and then do the install and your error will be solved. Here is commandline. To create env Use this command: conda create –name myenv Then do Activate env: conda activate myenv Now, Your error must be solved. Second solution is Just set channel_priority to false: conda config –set channel_priority false and my error solved.

Summary

Installing conda in a new environment, setting channel_priority to false, and Downgrading conda will resolve this error. Comment below which solution worked for you.

Also, Read

23 thoughts on “[Solved] Solving environment: failed with initial frozen solve. Retrying with flexible solve”

  1. appreciate your effort to put this togther i originally tough latest conda version comes pre-loaded with latest anaconda version

    Reply

Leave a Comment