康达传染性环境。无法解决

时间:2020-05-31 12:26:50

标签: anaconda package conda development-environment

在某些创建的环境中,conda永远挂在“解决环境步骤”上。我发现可能由于软件包版本不一致而发生这种情况。为了解决这个问题,我尝试回到主base环境并运行conda clean --allconda update --all。第一个正确完成,但是第二个在软件包中产生了一长串不一致之处:

Collecting package metadata: done
Solving environment: - 
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - conda-forge/osx-64::r-viridislite==0.3.0=r3.4.1_0
  - conda-forge/osx-64::r-nlme==3.1_131=r341ha44fe06_1
  - conda-forge/osx-64::r-cli==1.0.0=r3.4.1_0
  - conda-forge/osx-64::r-reshape2==1.4.3=r341hfc679d8_1
  - conda-forge/osx-64::r-magrittr==1.5=r3.4.1_0
  - conda-forge/osx-64::r-munsell==0.5.0=r341_0
  - conda-forge/osx-64::r-plyr==1.8.4=r341hfc679d8_1
  - conda-forge/osx-64::r-mass==7.3_50=r341hc070d10_1
  - conda-forge/osx-64::r-labeling==0.3=r3.4.1_0
  - conda-forge/osx-64::r-utf8==1.1.3=r341h470a237_1
  - conda-forge/osx-64::r-gtools==3.8.1=r341h470a237_1
  - conda-forge/osx-64::r-r6==2.2.2=r3.4.1_0
  - conda-forge/osx-64::r-rcolorbrewer==1.1_2=r3.4.1_0
  - conda-forge/osx-64::r-glue==1.3.0=r341h470a237_1
  - bioconda/osx-64::r-gsalib==2.1=r3.4.1_0
  - conda-forge/osx-64::r-gdata==2.18.0=r3.4.1_0
  - conda-forge/osx-64::r-pillar==1.2.2=r341h6115d3f_1
  - conda-forge/osx-64::r-bitops==1.0_6=r341h470a237_1
  - conda-forge/osx-64::r-withr==2.1.1=r3.4.1_0
  - conda-forge/osx-64::r-base==3.4.1=h4fe35fd_8
  - conda-forge/osx-64::r-lazyeval==0.2.1=r341h470a237_1
  - conda-forge/osx-64::r-colorspace==1.3_2=r341h470a237_1
  - conda-forge/osx-64::r-digest==0.6.15=r341h470a237_1
  - conda-forge/osx-64::r-gtable==0.2.0=r3.4.1_0
  - conda-forge/osx-64::r-dichromat==2.0_0=r3.4.1_0
  - conda-forge/osx-64::r-ggplot2==3.0.0=r341h6115d3f_0
  - conda-forge/osx-64::r-crayon==1.3.4=r3.4.1_0
  - conda-forge/osx-64::r-lattice==0.20_34=r3.4.1_0
  - bioconda/noarch::gatk==3.8=5
  - conda-forge/osx-64::r-mgcv==1.8_24=r341h470a237_1
  - conda-forge/osx-64::r-catools==1.17.1.1=r341hfc679d8_1
  - conda-forge/osx-64::r-assertthat==0.2.0=r3.4.1_0
  - conda-forge/osx-64::r-stringi==1.2.3=r341hfc679d8_1
  - conda-forge/osx-64::r-reshape==0.8.7=r341h470a237_1
  - conda-forge/osx-64::r-tibble==1.4.2=r341h470a237_1
  - conda-forge/osx-64::r-rlang==0.2.1=r341h470a237_1
  - conda-forge/osx-64::r-scales==0.5.0=r341hfc679d8_1
  - conda-forge/osx-64::r-gplots==3.0.1=r3.4.1_0
  - conda-forge/osx-64::r-kernsmooth==2.23_15=r341ha44fe06_1
  - conda-forge/osx-64::r-rcpp==0.12.17=r341h9d2a408_1
  - conda-forge/osx-64::r-matrix==1.2_14=r341h470a237_1
  - conda-forge/osx-64::r-stringr==1.3.1=r341_0

failed

UnsatisfiableError: The following specifications were found to be in conflict:
  - conda[version='>=4.6.14']
Use "conda search <package> --info" to see the dependencies for each package.

据我了解,有一堆与R相关的软件包在版本/依赖关系(版本)方面存在某种冲突。我真的不知道如何正确地解决此问题,因为我发现的所有以前的问题(与我的问题类似)都具有不一致的软件包,并且运行conda install xxx可以解决问题。我已经尝试过使用此列表中的一些软件包进行操作,但是它不起作用。

请在下面完善con​​da信息:

 active environment : bio
    active env location : /Users/aganezov/miniconda/envs/bio
            shell level : 2
       user config file : /Users/aganezov/.condarc
 populated config files : /Users/namecondarc
          conda version : 4.6.14
    conda-build version : 3.15.1
         python version : 3.6.8.final.0
       base environment : /Users/name/miniconda  (writable)
           channel URLs : http://conda.anaconda.org/gurobi/osx-64
                          http://conda.anaconda.org/gurobi/noarch
                          https://conda.anaconda.org/bioconda/osx-64
                          https://conda.anaconda.org/bioconda/noarch
                          https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/osx-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://conda.anaconda.org/r/osx-64
                          https://conda.anaconda.org/r/noarch
          package cache : /Users/name/miniconda/pkgs
                          /Users/name/conda/pkgs
       envs directories : /Users/name/miniconda/envs
                          /Users/name/.conda/envs
               platform : osx-64
             user-agent : conda/4.6.14 requests/2.18.4 CPython/3.6.8 Darwin/19.5.0 OSX/10.15.5
                UID:GID : 501:20
             netrc file : None
           offline mode : False

我在此安装程序中有一堆环境,因此,就我所知,导出单个环境然后从env文件创建新环境,简单的“删除整个conda并重新开始”对我来说绝对是最后的选择。可能是一个选择。

尝试运行conda update -n base conda会导致与上述相同的不一致的环境错误。

理想情况下,我想解决不一致问题,并确保所有conda都是最新的并保持这种状态。

0 个答案:

没有答案