在Linux上使用Anaconda,我尝试了以下操作:
conda install -c bioconda figtree
但这给了我
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 abor/
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
也许只是我一个人,但这不是没有帮助的信息吗? Output in format: Requested package -> Available versions
是什么意思?他们只是想刻薄吗?
我不是要在其他地方搜索答案吗?在这里提出要求并不正确
最重要的是:我将来如何解决这个问题和类似问题?带有或不带有Anaconda
答案 0 :(得分:1)
Bioconda具有channel configuration settings,用户需要遵循{concept {3}}才能从Bioconda软件包中获得预期的行为,包括解决安装问题。特别是,用户应具有 conda-forge > bioconda > 默认值。这可能是影响安装的原因,因为figtree
具有xorg-libxtst
作为依赖项,并且仅在Conda Forge上。
如果您想执行 ad (如OP中那样),则模仿其推荐设置的命令将是
conda install --override-channels -c conda-forge -c bioconda -c defaults figtree
通道顺序定义其优先级。
但是,通常最好在全局(Bioconda文档显示)或在每个环境(针对具有多个项目的用户)下进行配置:
# activate environment
conda activate my_env
# set channels for environment
conda config --env --add channels defaults
conda config --env --add channels bioconda
conda config --env --add channels conda-forge
# no need to use ad hoc `-c` flags
conda install figtree