在Conda上安装multiqc会产生“无法满足的错误:”

2024-04-26 05:06:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试过安装一个名为multiqc的程序,当我尝试在我的conda环境中安装它时,它会抛出这个错误。我尝试过安装列表中包含的python的替代版本,但它似乎不起作用

命令

conda install -c bioconda multiqc

安装

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:

  - multiqc -> python[version='2.7.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|3.4.*']

Your python: python=3.7

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.

Tags: thetoyoujsonforthatenvironmentversion
1条回答
网友
1楼 · 发布于 2024-04-26 05:06:11

安装MultiQC的命令应该而不是使用-c bioconda。相反,根据bioconda documentation设置conda通道,并在不使用-c标志的情况下安装:

# Only need to do this once
conda config  add channels defaults
conda config  add channels bioconda
conda config  add channels conda-forge

# Install MultiQC
conda install multiqc

如果愿意,还可以从PyPI或多个其他源安装:https://multiqc.info/docs/#installing-multiqc

在编写本文时,MultiQC可以工作,并在Python 3.6-3.9上进行了测试。3.7肯定会起作用,所以这不是问题所在

相关问题 更多 >