无法使用Conda从yml文件安装多个包

问题描述 投票:0回答:1

我有一个简单的问题(我认为)到目前为止我无法解决。我正在尝试安装一个软件包:artic,来自 Bioconda。这是链接:ARTIC

我安装了Conda,然后使用YML文件创建了一个虚拟环境来安装其他必要的依赖项,但是,该过程失败,因为它找不到包,这是YML文件:

name: artic
channels:
  - conda-forge
  - bioconda
  - defaults
dependencies:
  - artic-porechop =0.3.2pre
  - artic-tools =0.2.6
  - longshot =0.4.5
  - bcftools =1.17
  - biopython =1.81
  - bwa = 0.7.17
  - clint =0.5.1
  - htslib =1.17
  - medaka >=1.8.0
  - minimap2 =2.26
  - multiqc =1.15
  - muscle =3.8
  - nanopolish =0.14.0
  - pandas =2.0.3
  - pip
  - pysam =0.21.0
  - pytest
  - python =3.9.15
  - pyvcf =0.6.8
  - pyfaidx =0.6.0
  - requests =2.31.0
  - samtools =1.17
  - tqdm =4.66.1
  - keras-preprocessing =1.1.2

现在错误:

Channels:
 - conda-forge
 - bioconda
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - samtools=1.17*
  - pyvcf=0.6.8*
  - pysam=0.21.0*
  - nanopolish=0.14.0*
  - muscle=3.8*
  - minimap2=2.26*
  - medaka[version='>=1.8.0']
  - longshot=0.4.5*
  - htslib=1.17*
  - bwa=0.7.17*
  - bcftools=1.17*
  - artic-tools=0.2.6*
  - artic-porechop=0.3.2pre*

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/bioconda/osx-arm64
  - https://repo.anaconda.com/pkgs/main/osx-arm64
  - https://repo.anaconda.com/pkgs/r/osx-arm64

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.

我认为我的主要问题是我忘记安装一个主要软件包(我不知道是什么),但是,也许有人可以有另一个想法来解决这个问题。

macos anaconda conda
1个回答
0
投票

在这篇文章中收到安德鲁的帮助并检查了一些替代方案后,我设置了:

conda config --add subdirs osx-64

大多数依赖项都是按照我提供的链接中的说明安装在 conda 环境中的,如果一个依赖项不起作用,我会使用 conda 单独安装它

© www.soinside.com 2019 - 2024. All rights reserved.