在没有互联网连接的情况下使用 julia 语言(镜像?) [英] use julia language without internet connection (mirror?)

查看:21
本文介绍了在没有互联网连接的情况下使用 julia 语言(镜像?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:我想在我们的公司网络上为我们的开发人员提供 julia,由于敏感数据,该网络根本无法访问互联网(没有代理).

Problem: I would like to make julia available for our developers on our corporate network, which has no internet access at all (no proxy), due to sensitive data.

据我了解,julia 旨在使用 github.例如 julia> Pkg.init() 尝试访问:git://github.com/JuliaLang/METADATA.jl

As far as I understand julia is designed to use github. For instance julia> Pkg.init() tries to access: git://github.com/JuliaLang/METADATA.jl

示例:我通过创建本地 CRAN 存储库 (rsync) 并设置本地网络服务器为 R 解决了这个问题.我还通过创建本地 PyPi 存储库 (bandersnatch) + webserver 以同样的方式为 python 解决了这个问题.

Example: I solved this problem for R by creating a local CRAN repository (rsync) and setting up a local webserver. I also solved this problem for python the same way by creating a local PyPi repository (bandersnatch) + webserver.

问题:有没有办法为 julia 的元数据和包创建本地存储库?

Question: Is there a way to create a local repository for metadata and packages for julia?

提前谢谢你.罗马

推荐答案

是的,使用 Julia 包管理器的好处之一是您应该能够 fork METADATA 并将其托管在您想要的任何地方(并保留一个分支,您可以在其中实际检查新包,然后再允许您的客户端更新).你可能是第一批真正建立这样一个系统的人,所以希望你需要提交一些问题(或者更好的是;拉取请求)以使一切顺利进行.

Yes, one of the benefits from using the Julia package manager is that you should be able to fork METADATA and host it anywhere you'd like (and keep a branch where you can actually check new packages before allowing your clients to update). You might be one of the first people to actually set up such a system, so expect that you will need to submit some issues (or better yet; pull requests) in order to get everything working smoothly.

查看 Pkg.init() 在其中指定 METADATA 存储库 URL.

See the extra arguments to Pkg.init() where you specify the METADATA repo URL.

如果您想要一个更简单的管理解决方案,我还可以考虑使用两层设置,在一个系统(连接到互联网)上安装软件包,然后复制生成的 ~/.julia 受限系统的目录.如果你使用的包有二进制依赖,如果两边没有类似的系统,或者全局安装了一些依赖,但是 Pkg.build("Pkgname") 可能会有所帮助.

If you want a simpler solution to manage I would also think about having a two tier setup where you install packages on one system (connected to the internet), and then copy the resulting ~/.julia directory to the restricted system. If the packages you use have binary dependencies, you might run into problems if you don't have similar systems on both sides, or if some of the dependencies is installed globally, but Pkg.build("Pkgname") might be helpful.

这篇关于在没有互联网连接的情况下使用 julia 语言(镜像?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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