有什么方法可以在julia-lang中构建程序包依赖树吗? [英] Is there any way to build package dependency tree in julia-lang?
本文介绍了有什么方法可以在julia-lang中构建程序包依赖树吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用npm list
将显示已安装的软件包,版本和关系的树:
Using npm list
will show a tree of installed packages, versions and relations:
尽管Julia的包裹管理方式有所不同(例如,通常不存在包裹的重复副本),但是有什么方法可以做到:
Although Julia package management is differ (e.g normally no duplicate copy of a package exists), But is there any way to:
- 知道为什么要安装一个软件包吗?
- 或构建包依赖关系树.
推荐答案
我不认为有一个简单的函数,但是使用这两个函数应该不难:
I don't think there's a simple function, but it shouldn't be too hard to do with these two functions:
julia> Pkg.dependents("Cairo")
10-element Array{AbstractString,1}:
"Tk"
"Gtk"
"Mamba"
"Drawing"
"GtkUtilities"
"ProfileView"
"Brim"
"Winston"
"EcologicalNetwork"
"VennEuler"
julia> Pkg.installed()
Dict{ASCIIString,VersionNumber} with 119 entries:
"Libz" => v"0.0.2"
"Gtk" => v"0.9.3"
"Interact" => v"0.3.0"
"ForwardDiff" => v"0.1.4"
"Benchmark" => v"0.1.0"
"AxisAlgorithms" => v"0.1.4"
"Cairo" => v"0.2.31+"
"HttpParser" => v"0.1.1"
"DataFrames" => v"0.6.10"
"Requests" => v"0.3.4"
"QuartzImageIO" => v"0.1.0+"
"Markdown" => v"0.3.0"
"Requires" => v"0.2.2"
"ArgParse" => v"0.3.0"
⋮ => ⋮
这篇关于有什么方法可以在julia-lang中构建程序包依赖树吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文