Solve CONDA’s “solving environment: failed” problem

1. Problem code

recently when conda installed the software package, the following problems have been occurring. I found a lot of solutions on the Internet but failed to solve my problem. See the link

Collecting package metadata (current_repodata.json): done
Solving environment: failed with current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
Initial quick solve with frozen env failed.  Unfreezing env and trying again.
Solving environment: failed

2. Cause found

when I later looked at the error message, it turned out that it was caused by two commands for using conda-forge. The culprit is the second sentence.

conda config --add channels conda-forge
conda config --set channel_priority strict

3. Solution

conda config --set channel_priority flexible


Read More: