MetaPhlAn Conda Install

329 views
Skip to first unread message

adamber1187

unread,
Jul 15, 2019, 3:01:13 PM7/15/19
to MetaPhlAn-users
Hi all,

Trying to use Humann2, but having trouble with installing MetaPhlAn. New to this world and trying to trouble shoot. Below is the error I'm getting when trying to install through Conda. Thanks for any help in advance.

(humann2) C:\Users\berlinba>conda install -c bioconda metaphlan2
WARNING conda.base.context:use_only_tar_bz2(632): Conda is constrained to only using the old .tar.bz2 file format because you have conda-build installed, and it is <3.18.3. Update or remove conda-build to get smaller downloads and faster extractions.
Collecting package metadata (repodata.json): done
Solving environment: failed

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

- metaphlan2 -> blast[version='>=2.6.0']
- metaphlan2 -> bowtie2[version='>=2.0.0']
- metaphlan2 -> muscle[version='>=3.8.1551']
- metaphlan2 -> pysam[version='>=0.8.3']
- metaphlan2 -> raxml[version='>=8.2.10']
- metaphlan2 -> samtools[version='>=0.1.19,<1.0']

Current channels:

- https://conda.anaconda.org/bioconda/win-64
- https://conda.anaconda.org/bioconda/noarch
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch

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.

Valentina Galata

unread,
Jul 18, 2019, 5:22:09 AM7/18/19
to MetaPhlAn-users
Am Montag, 15. Juli 2019 21:01:13 UTC+2 schrieb adamber1187:
> PackagesNotFoundError: The following packages are not available from current channels:

That is strange... I can install metaphlan2 using your command without any problems (conda version 4.7.5):

conda create -n test_metaphlan2
conda activate test_metaphlan2


conda install -c bioconda metaphlan2

Not sure whether this might be the issue but I would try to update your conda. You seem to have a pretty old version of it and I remember that I had some installation issues with an (less) old conda version which were resolved after the upgrade.

adamber1187

unread,
Jul 18, 2019, 12:05:25 PM7/18/19
to MetaPhlAn-users

Thanks for the reply. I did update Conda (4.7.8), and still cannot install Metaphlan2 for some reason. Now getting this error:

C:\Users\berlinba>conda install -c bioconda metaphlan2


Collecting package metadata (repodata.json): done
Solving environment: failed

Initial quick solve with frozen env failed. Unfreezing env and trying again.
Solving environment: failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Package python conflicts for:
metaphlan2 -> python=2.7
Package matplotlib conflicts for:
metaphlan2 -> matplotlib
Package dendropy conflicts for:
metaphlan2 -> dendropy[version='3.12.3.*|3.12.3.*,>=3.12.3']
Package bowtie2 conflicts for:


metaphlan2 -> bowtie2[version='>=2.0.0']

Package pysam conflicts for:


metaphlan2 -> pysam[version='>=0.8.3']

Package msgpack-python conflicts for:
metaphlan2 -> msgpack-python
Package scipy conflicts for:
metaphlan2 -> scipy
Package numpy conflicts for:
metaphlan2 -> numpy=1.14.2
Package raxml conflicts for:


metaphlan2 -> raxml[version='>=8.2.10']

Package biom-format conflicts for:
metaphlan2 -> biom-format
Package requests conflicts for:
metaphlan2 -> requests
Package samtools conflicts for:


metaphlan2 -> samtools[version='>=0.1.19,<1.0']

Package biopython conflicts for:
metaphlan2 -> biopython
Package muscle conflicts for:


metaphlan2 -> muscle[version='>=3.8.1551']

Package pandas conflicts for:
metaphlan2 -> pandas=0.22
Package blast conflicts for:

Valentina Galata

unread,
Jul 19, 2019, 1:09:09 AM7/19/19
to MetaPhlAn-users
Okay, now it is clear that there are version conflicts.
Ho did you create your environment? Did you install other packages before trying to install MetaPhlAn2?

Francesco Beghini

unread,
Jul 22, 2019, 2:26:45 AM7/22/19
to adamber1187, MetaPhlAn-users
Hi Adam,
unfortunately, MetaPhlAn2 does not support any version of Windows and it is meant to be run exclusively on Linux. 

Best,
Francesco

Francesco Beghini
PhD Student - Laboratory of Computational Metagenomics
Department of Cellular, Computational and Integrative Biology - CIBIO
University of Trento


--
You received this message because you are subscribed to the Google Groups "MetaPhlAn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to metaphlan-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metaphlan-users/7d7b4172-f45d-448a-83d6-d647e9aa718f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

adamber1187

unread,
Jul 22, 2019, 3:44:34 PM7/22/19
to MetaPhlAn-users
Excellent, thanks a lot. Was able to download it on Linux. May be worth mentioning somewhere on the website that it is only Linux compatible since it isn't mentioned anywhere.


To unsubscribe from this group and stop receiving emails from it, send an email to metaphl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages