davidemms / OrthoFinder

Phylogenetic orthology inference for comparative genomics
https://davidemms.github.io/
GNU General Public License v3.0
650 stars 185 forks source link

conda install failes #881

Open shbrainard opened 5 months ago

shbrainard commented 5 months ago

Conda install fails on M2 Mac with miniconda installed:


(orthofinder) ➜  ~ conda install -c bioconda orthofinder
Channels:
 - bioconda
 - conda-forge
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides blast needed by orthofinder-2.3.10-0

Could not solve for environment specs
The following package could not be installed
└─ orthofinder is not installable because it requires
   └─ blast, which does not exist (perhaps a missing channel).

(orthofinder) ➜  ~ conda config --show channels

channels:
  - conda-forge
  - bioconda
  - defaults

(orthofinder) ➜  ~ conda --version
conda 23.11.0

maybe the issue is i'm on an M2 ARM Mac?

astrademertzi commented 3 months ago

I had the same problem, and it took a while to find a way to resolve this.

After activating the environment, run the following command to change the platform architecture (osx-64 instead of osx-arm64) for the environment you are using. As far as I understood, it is a compatibility issue of a sort.

conda activate env conda config --env --set subdir osx-64

Hope this helps.