有没有办法在 julia-lang 中构建包依赖树? [英] Is there any way to build package dependency tree in julia-lang?

查看:19
本文介绍了有没有办法在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆