conda 中的包安装问题:PackagesNotFoundError

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

我是使用 conda 环境的新手。我正在尝试使用 conda 从 github 安装 this 包,但它抛出了

PackagesNotFoundError
错误。

git clone https://github.com/mmiladi/MutaRNA.git
cd MutaRNA
conda env create -f conda-env-MutaRNA.yml -n MutaRNA

然后我收到此错误:

 Channels:
 
 - conda-forge
  - bioconda
  - defaults
  - r
  - conda 

Platform: linux-64 Collecting package metadata (repodata.json): done solving environment: failed
 
 PackagesNotFoundError: The following packages are not available from
 current channels:
 
   - gcc_impl_linux-64==7.3.0=habb00fd_2
   - gdk-pixbuf==2.36.12=haf2c3b9_1004
   - gxx_impl_linux-64==7.3.0=hdf63c60_2
 
 Current channels:
 
   - https://conda.anaconda.org/conda-forge/linux-64
   - https://conda.anaconda.org/bioconda/linux-64
   - https://repo.anaconda.com/pkgs/main/linux-64
   - https://repo.anaconda.com/pkgs/r/linux-64
   - https://conda.anaconda.org/r/linux-64
   - https://conda.anaconda.org/conda/linux-64
 
 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.

我尝试直接从 URL 安装

gcc_impl_linux-64==7.3.0=habb00fd_2
,但仍然无法解决问题。

conda install https://anaconda.org/conda-forge/gcc_impl_linux-64/7.3.0/download/linux-64/gcc_impl_linux-64-7.3.0-habb00fd_2.tar.bz2

虽然丢失的包位于 conda-forge 通道下,但不知何故无法检测到。

installation conda
1个回答
0
投票

这些包仍然存在,但已被移动到不同的标签(“损坏”),因此它们不会出现在 conda-forge 通道的“主”返回中。如果您在 https://anaconda.org 上查找软件包,您仍然可以找到它们。

在这里你可以看到 gcc_impl_linux-64==7.3.0=habb00fd_2 但它已被移至标签

broken
gdk-pixbuf==2.36.12=haf2c3b9_1004
gxx_impl_linux-64==7.3.0=hdf63c60_2
也是如此。

要安装这些,您需要将该标签的子通道添加到安装命令中:

conda env create -f conda-env-MutaRNA.yml -n MutaRNA -c conda-forge/label/broken

这将安装它们,但是损坏的标签应该会让您犹豫不决这将如何工作。

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