如何分析conda的依赖树

时间:2019-04-30 00:19:47

标签: python python-3.x anaconda conda miniconda

像Maven一样,是否有用于分析Conda依赖关系的工具?

ie:在Java项目(基于Maven)中,您说mvn dependency:tree,它以可读树格式显示所有依赖项(以及传递性依赖项)。

我想知道我们是否在基于python的项目中分析了Conda依赖项。

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

签出conda-tree

用法(基于conda-tree网页)

# version
$ conda-tree --version
conda-tree 0.0.4

# packages that no other package depends on
$ conda-tree leaves
['samtools','bcftools',...]

# dependencies of a specific package
$ conda-tree depends samtools
['curl', 'xz', 'libgcc', 'zlib']

# which packages depend on a specific package
$ conda-tree whoneeds xz
['samtools', 'bcftools', 'htslib', 'python']

# dependency cycles
$ conda-tree cycles
pip -> python -> pip
pip -> wheel -> python -> pip

# query a different conda prefix/env
$ conda-tree -p /conda/envs/trinity leaves
['trinity']

# query by name
$ conda-tree -n trinity leaves
['trinity']
相关问题