Installing snakemake error

If you are trying to install snakemake from conda like this:

 mamba create -c conda-forge -c bioconda -n snakemake'snakemake

and you get an error:

 Encountered problems while solving:
 - nothing provides snakemake-minimal 8.11.2.* needed by snakemake-8.11.2-hdfd78af_0

Then you need to switch the order of your conda channels.

Try this quickfix:

mamba create -c conda-forge -c bioconda -n snakemake 'snakemake>8'