# Error in MetaPhlAn installation

**URL:** <https://forum.biobakery.org/t/error-in-metaphlan-installation/5769>\
**Category:** MetaPhlAn\
**Created:** [August 14, 2023, 1:33pm UTC](https://forum.biobakery.org/t/error-in-metaphlan-installation/5769 "2023-08-14T13:33:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mallamuneer](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/mallamuneer/32/2141_2.png) [@mallamuneer](https://forum.biobakery.org/u/mallamuneer)\
**Post date:** [August 14, 2023, 1:33pm UTC](https://forum.biobakery.org/t/error-in-metaphlan-installation/5769/1 "2023-08-14T13:33:46Z")

</div>

Hi all  
I am trying to install MetaPhlAn and I am getting this error  
conda create --name mpa -c bioconda python=3.7 metaphlan  
Collecting package metadata (current\_repodata.json): done  
Solving environment: failed with repodata from current\_repodata.json, will retry with next repodata source.  
Collecting package metadata (repodata.json): done  
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 each other:

Output in format: Requested package → Available versions

Package python conflicts for:  
python=3.7  
metaphlan → python[version=‘2.7._|\>=3|\>=3.7’]  
metaphlan → biom-format → python[version='3.4._|3.5._|3.6._|\>=2.7,\<2.8.0a0|\>=3.5,\<3.6.0a0|\>=3.6,\<3.7.0a0|\>=3.11,\<3.12.0a0|\>=3.10,\<3.11.0a0|\>=3.9,\<3.10.0a0|\>=3.8,\<3.9.0a0|\>=3.7,\<3.8.0a0|\>=2.7,\<3|\>=3.7.1,\<3.8.0a0|\<3.0.0|\>=3.6’]The following specifications were found to be incompatible with your system:

- feature:/linux-64::\_\_glibc==2.27=0
- feature:|@/linux-64::\_\_glibc==2.27=0

Your installed version is: 2.27  
However, when I checked the Python --version it shows python 3.8.13  
Kindly suggest

---

<div class="post-metadata">

**Author:** ![fanhuan](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fanhuan/32/451_2.png) [@fanhuan](https://forum.biobakery.org/u/fanhuan)\
**Post date:** [August 18, 2023, 6:03am UTC](https://forum.biobakery.org/t/error-in-metaphlan-installation/5769/2 "2023-08-18T06:03:18Z")

</div>

I’m having a similar issue about glibc (pythong version was fine).  
$ conda create --name biobakery3 python=3.7  
$ conda activate biobakery3  
(biobakery3)$ conda install -c bioconda metaphlan=4.0.6  
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 each other:

Output in format: Requested package → Available versionsThe following specifications were found to be incompatible with your system:

- feature:/linux-64::\_\_glibc==2.31=0
- feature:|@/linux-64::\_\_glibc==2.31=0

Your installed version is: 2.31

---

<div class="post-metadata">

**Author:** ![mallamuneer](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/mallamuneer/32/2141_2.png) [@mallamuneer](https://forum.biobakery.org/u/mallamuneer)\
**Post date:** [August 18, 2023, 9:14am UTC](https://forum.biobakery.org/t/error-in-metaphlan-installation/5769/3 "2023-08-18T09:14:56Z")

</div>

Hi @fanhuan  
Dud you got the error fixed.  
I am trying an alternative way by installing biobakery\_workflows  
But that again gives me error.  
Meanwhile I am waiting for the reply from the group members and experts in the groups.

---

<div class="post-metadata">

**Author:** ![Makio](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/makio/32/2365_2.png) [@Makio](https://forum.biobakery.org/u/Makio)\
**Post date:** [August 24, 2023, 2:08pm UTC](https://forum.biobakery.org/t/error-in-metaphlan-installation/5769/4 "2023-08-24T14:08:06Z")

</div>

How about trying to use `-c conda-forge` flag as [suggested](https://github.com/biobakery/MetaPhlAn/wiki/MetaPhlAn-4)?

```auto
$ conda create --name mpa -c conda-forge -c bioconda python=3.7 metaphlan

```

---

<div class="post-metadata">

**Author:** ![mallamuneer](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/mallamuneer/32/2141_2.png) [@mallamuneer](https://forum.biobakery.org/u/mallamuneer)\
**Post date:** [August 25, 2023, 6:44pm UTC](https://forum.biobakery.org/t/error-in-metaphlan-installation/5769/5 "2023-08-25T18:44:27Z")

</div>

Hi @Makio  
Thank you for your reply.  
No I didn’t,  
I was trying other way by installing biobakery\_workflows. But got error  
metaphlan --install --index mpa\_vJan21\_CHOCOPhlAnSGB\_202103 --bowtie2db bowtie2

Downloading MetaPhlAn database  
Please note due to the size this might take a few minutes

\Downloading and uncompressing indexes

Downloading [http://cmprod1.cibio.unitn.it/biobakery4/metaphlan\_databases/bowtie2\_indexes/mpa\_vJan21\_CHOCOPhlAnSGB\_202103\_bt2.tar](http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases/bowtie2_indexes/mpa_vJan21_CHOCOPhlAnSGB_202103_bt2.tar)  
Downloading file of size: 19909.64 MB  
14714.07 MB 73.90 % 1.81 MB/sec 47 min 45 sec  
Warning: Unable to download [http://cmprod1.cibio.unitn.it/biobakery4/metaphlan\_databases/bowtie2\_indexes/mpa\_vJan21\_CHOCOPhlAnSGB\_202103\_bt2.tar](http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases/bowtie2_indexes/mpa_vJan21_CHOCOPhlAnSGB_202103_bt2.tar)

Downloading [http://cmprod1.cibio.unitn.it/biobakery4/metaphlan\_databases/bowtie2\_indexes/mpa\_vJan21\_CHOCOPhlAnSGB\_202103\_bt2.md5](http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases/bowtie2_indexes/mpa_vJan21_CHOCOPhlAnSGB_202103_bt2.md5)

Warning: Unable to download [http://cmprod1.cibio.unitn.it/biobakery4/metaphlan\_databases/bowtie2\_indexes/mpa\_vJan21\_CHOCOPhlAnSGB\_202103\_bt2.md5](http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases/bowtie2_indexes/mpa_vJan21_CHOCOPhlAnSGB_202103_bt2.md5)  
File “bowtie2/mpa\_vJan21\_CHOCOPhlAnSGB\_202103\_bt2.md5” not found!  
MD5 checksums not found, something went wrong!  
Please help out

---

<div class="post-metadata">

**Author:** ![mallamuneer](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/mallamuneer/32/2141_2.png) [@mallamuneer](https://forum.biobakery.org/u/mallamuneer)\
**Post date:** [August 25, 2023, 6:45pm UTC](https://forum.biobakery.org/t/error-in-metaphlan-installation/5769/6 "2023-08-25T18:45:47Z")

</div>

Hi @Makio  
Again, then I tried to download the database manually,  
but now want to know how to proceed further  
thanks

---

<div class="post-metadata">

**Author:** ![Makio](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/makio/32/2365_2.png) [@Makio](https://forum.biobakery.org/u/Makio)\
**Post date:** [August 25, 2023, 7:32pm UTC](https://forum.biobakery.org/t/error-in-metaphlan-installation/5769/7 "2023-08-25T19:32:24Z")

</div>

@mallamuneer you might follow the [tutorial](https://github.com/biobakery/biobakery/wiki/metaphlan4) to test the environment. I think it is good for you to download the vJan21 instead of vOct22 as I see another problem with vOct22 - [Cannot reproduce results of MetaPhlAn 4.0 tutorial - #4 by Makio](https://forum.biobakery.org/t/cannot-reproduce-results-of-metaphlan-4-0-tutorial/5809/4)

---

<div class="post-metadata">

**Author:** ![mallamuneer](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/mallamuneer/32/2141_2.png) [@mallamuneer](https://forum.biobakery.org/u/mallamuneer)\
**Post date:** [August 25, 2023, 8:15pm UTC](https://forum.biobakery.org/t/error-in-metaphlan-installation/5769/8 "2023-08-25T20:15:00Z")

</div>

Hi@ Makio  
thank you so much for your prompt response  
**First : Do you mean after manual installation, I should run the example dataset to test the environment**  
**Second: please share the link for vOct22**  
Regards

---

<div class="post-metadata">

**Author:** ![Makio](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/makio/32/2365_2.png) [@Makio](https://forum.biobakery.org/u/Makio)\
**Post date:** [August 28, 2023, 12:56pm UTC](https://forum.biobakery.org/t/error-in-metaphlan-installation/5769/9 "2023-08-28T12:56:34Z")

</div>

Hi @mallamuneer

Yes, I would recommend running the example and ensuring you can reproduce the same results.

vOct22 is at the official FTP site [Index of /biobakery4/metaphlan\_databases](http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases/).

Makio
