使用Anaconda安装Scran包时出错

2024-06-14 05:33:02 发布

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

因此,我尝试安装Scran,使用conda install -c bioconda bioconductor-scran,然后得到如下错误:

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 versions

Package zlib conflicts for: bioconductor-scran -> r-base[version='>=3.6,<3.7.0a0'] -> zlib[version='>=1.2.11,<1.3.0a0'] python=3.8 -> zlib[version='>=1.2.11,<1.3.0a0']

Package ncurses conflicts for: python=3.8 -> ncurses[version='>=6.1,<7.0a0|>=6.2,<7.0a0'] python=3.8 -> readline[version='>=7.0,<8.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0']

Package libgcc-ng conflicts for: python=3.8 -> openssl[version='>=1.1.1k,<1.1.2a'] -> libgcc-ng[version='>=7.2.0|>=9.3.0'] python=3.8 -> libgcc-ng[version='>=7.3.0|>=7.5.0']

Package libstdcxx-ng conflicts for: python=3.8 -> libffi[version='>=3.2.1,<3.3a0'] -> libstdcxx-ng[version='>=7.2.0'] python=3.8 -> libstdcxx-ng[version='>=7.3.0']The following specifications were found to be incompatible with your system:

  • feature:/linux-64::__glibc==2.31=0
  • bioconductor-scran -> libgcc-ng[version='>=9.3.0'] -> __glibc[version='>=2.17']
  • python=3.8 -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.31`

我试过很多方法,但都不管用。我仍然不知道如何修复。谁能帮我个忙吗


Tags: packageforenvironmentversionwithnga0solve
1条回答
网友
1楼 · 发布于 2024-06-14 05:33:02

避免在同一环境中混合使用Python和R。此外,Bioconda假定以下通道优先级:

conda-forge > bioconda > defaults

尝试为您的Bioconductor工作创建专用环境,并确保固定r-base

bioc_r41.yaml

name: bioc_r41
channels:
  - conda-forge
  - bioconda
  - defaults
dependencies:
  - r-base=4.1
  - bioconductor-scran

通过以下方式创建环境:

conda env create -n bioc_r41 -f bioc_r41.yaml

或者,可以使用一个特别的命令来实现这一点,但它相当冗长:

conda create -n bioc_r41 -c conda-forge -c bioconda -c defaults r-base=4.1 bioconductor-scran

相关问题 更多 >