Skip to content

Instantly share code, notes, and snippets.

@adiv5
Created December 24, 2021 06:38
Show Gist options
  • Save adiv5/6589f2a4701e3fc094b2afc4f9c28ce4 to your computer and use it in GitHub Desktop.
Save adiv5/6589f2a4701e3fc094b2afc4f9c28ce4 to your computer and use it in GitHub Desktop.
For corrupted Conda Environments, Just do the following
"""
If you are getting the following error while installing new packages in conda:
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.
"""
Run the following command in your terminal
`conda update --all --yes`
Once this is done, install the package that was giving you the above error, and it wont happen again
Keep Updating conda regularly (once a month)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment