How to install Metaphlan4?

I follow the Installation instruction :

$ conda install -c bioconda metaphlan

and installed metaphlan but i run it shows still version3

metaphlan --version
MetaPhlAn version 3.0 (25 Feb 2020)

How can i install version 4 ?
Thanks!
Huiguang

found this on the wiki page of Metaphlan4

from metaphlan3 upgrade to metaphlan4 by doing:

conda install -c bioconda metaphlan=4.0.0

Cheers

still installation failed, open new env and use new python version not work, here is the error:
(mpa) $ conda install -c bioconda metaphlan=4.0.0
Collecting package metadata (current_repodata.json): done
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.
This can take several minutes. Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  • metaphlan=4.0.0 → python[version=‘>=3.7’]

Your python: python=3.6

If python is on the left-most side of the chain, that’s the version you’ve asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

  • feature:/linux-64::__glibc==2.34=0
  • feature:|@/linux-64::__glibc==2.34=0

Your installed version is: 2.34

Hi @yhg926
The incompatibility issue with the glibc package is usually related with a incompatibility of packages between the default and the conda-forge channels. To solve that problem, you can execute the command as follows:
$ conda install -c bioconda -c conda-forge metaphlan=4.0.0
However, before that, I would suggest you to update your python version to 3.7
$ conda install python=3.7

1 Like

problem solved. Thank you!