搞定 conda 安装包报错问题

问题描述:

conda install 报错

$ conda install tophat2
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

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

  - tophat2

Current channels:

  - https://conda.anaconda.org/conda-forge/linux-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://conda.anaconda.org/bioconda/linux-64
  - https://conda.anaconda.org/bioconda/noarch
  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch

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.

解决方案:

https://anaconda.org/ 直接去主页搜一搜。

搞定 conda 安装包报错问题_第1张图片
需要tophat2,直接搜索一下。
搞定 conda 安装包报错问题_第2张图片
按照要求再试试

$ conda install -c bioinfo tophat2
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

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

  - tophat2

Current channels:

  - https://conda.anaconda.org/bioinfo/linux-64
  - https://conda.anaconda.org/bioinfo/noarch
  - https://conda.anaconda.org/conda-forge/linux-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://conda.anaconda.org/bioconda/linux-64
  - https://conda.anaconda.org/bioconda/noarch
  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch

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.

居然还不行?!
指定ftp呢?

$ conda install --channel https://anaconda.org/bioinfo/tophat2 tophat2
Collecting package metadata (current_repodata.json): failed

UnavailableInvalidChannel: The channel is not accessible or is invalid.
  channel name: bioinfo/tophat2
  channel url: https://anaconda.org/bioinfo/tophat2
  error code: 404

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.

居然报错404,转变一个思路,直接windows系统下download下来考进去,好在包本身就1.6MB,不大。
搞定 conda 安装包报错问题_第3张图片

$ conda install --use-local tophat2-2.0.14-1.tar.bz2 

Downloading and Extracting Packages
################################################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

conda install --use-local 本地安装,搞定。

你可能感兴趣的:(生信踩坑)