有没有一种方法可以通过编程方式导入模块,比如?
deps = [ "HypothesisTests", "Plots", "MLDataUtils", "ArgParse",
"GraphViz", "Cairo", "CSV", "JLD", "FreqTables",
"MLBase", "Compat"]
for dep in deps
Pkg.add(dep)
try
import dep # <-- how?
catch
try
Pkg.build(dep)
catch
nothing
end
end
end
Pkg.update()