This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Can't install hisat2 with miniconda

I've been trying to install hisat2 with Miniconda but I keep getting this error. Miniconda is updated and seemingly installed. Also I'm on Mac OS. Please Advise.

Channels:
 - bioconda
 - default
 - defaults
 - conda-forge
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - hisat2

Current channels:

  - https://conda.anaconda.org/bioconda
  - https://conda.anaconda.org/default
  - defaults
  - https://conda.anaconda.org/conda-forge

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
unix miniconda hisat2

1 answer

You have installed the wrong version of conda.

Even on M1 (arm64 CPU) you need to be using the Intel-based (x64 CPU) conda installer. So delete the conda you have now and install the other Mac version conda.

What will cause problems later that your channels are in the wrong order.

# Set the proper channel order
conda config --prepend channels bioconda
conda config --prepend channels conda-forge
conda config --remove default

# Set the channel priority
conda config --set channel_priority strict

Your final .condac should contain only:

channels:
  - conda-forge
  - bioconda
channel_priority: strict

Log in to answer this question.