如何离线安装julia软件包

如何离线安装julia软件包

本文介绍了如何离线安装julia软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在与Internet断开连接的计算机上使用Julia.是否有简单的过程来下载软件包然后脱机安装?

I'd like to use Julia on a computer which is disconnected from the Internet.Is there simple procedure to download a package and then install it offline?

推荐答案

当然可以.

Pkg.dir() # => get you the package installation path

检查pkg.julialang.org/地址以获取正确的软件包,然后单击其github链接,然后您可以从github.com下载zip存档并将其解压缩到Pkg.dir()
但是您可能会遇到麻烦
因为您必须手动执行许多可选操作,例如:

check the pkg.julialang.org/ address to get the right package and click on its github link, then you can download a zip archive from github.com and extract it into Pkg.dir()
BUT you may taking yourself into trouble
because you must do many optional things manually, e.g.:

  • 重命名文件夹以删除.jl
  • build步骤
  • 安装所有相关软件包
  • rename folder to remove .jl
  • build steps
  • install all related packages

我认为更好的方法是在连接的计算机上安装Pkgs,然后将Pkg.dir()内容从该计算机复制到您的系统.仅当两台计算机都具有相同的体系结构(cpuX os julia-version)时,此方法才有效.

I think a better way is to install Pkgs on a connected machine and then copy Pkg.dir() contents from that machine, to your system. this approach would works well only if both machines are of the same architecture (cpuX os julia-version).

这篇关于如何离线安装julia软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 03:26