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
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.
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
- NotImplementedError: Cannot convert a symbolic Tensor (2nd_target:0) to a numpy array
- How to Remove Conda environment in Python?
- How to check the Python and Anaconda Version
- CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/a naconda/win-64/repodata.json
It works!
Works – Thanks so much
It’s my Pleasure to Help You Myles. Thank You For Your Valuable words.
It works. Thanks.
It’s my Pleasure to Help You ceyhun. Thank You For Your Valuable words.
Solution One worked for me. thank you
It’s my Pleasure to Help You Victor. Thank You For Your Valuable words.
Thank You.
It’s my Pleasure to Help You Kanishka Dubey. Thank You For Your Valuable words.
thanku so much , it worked
It’s my Pleasure to Help You Amarnath Baranwal. Thank You For Your Valuable words.
it worked
It’s my Pleasure to Help You milli. Thank You For Your Valuable words.
appreciate your effort to put this togther i originally tough latest conda version comes pre-loaded with latest anaconda version
Thank You For Your Valuable words.
Success.. Thank you for your help. 🙂
It’s my Pleasure to Help You VishnuBhai. Thank You For Your Valuable words.
Wow, i’ve spent many days searching for solution. This worked like champ. Thanks
It’s my Pleasure to Help You. Thank You For Your Valuable words.
Thanks for this, it worked.
It’s my Pleasure to Help You Jeremy. Thank You So Much For Your Valuable words.
Creating the new environment worked. Thank you! Why does it work, though?
It’s my Pleasure to Help You Diana. Thank You So Much For Your Valuable words.