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

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

问题描述

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

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)并设置了本地Web服务器来解决了R的此问题. 我还通过创建本地PyPi存储库(bandersnatch)+网络服务器,以相同的方式解决了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软件包管理器的好处之一是,您应该能够派生METADATA并将其托管在您想要的任何位置(并保留一个分支,您可以在此之前实际检查新软件包,然后再允许您的客户端进行更新).您可能是最早真正建立这样一个系统的人之一,因此希望您需要提交一些问题(或者更好的是,pull request)才能使所有工作顺利进行.

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.

请参见

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

如果您要管理一个更简单的解决方案,我也将考虑采用两层安装程序,即在一个系统(连接到Internet)上安装软件包,然后将生成的~/.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天全站免登陆