如何将 Julia 升级到新版本? [英] How to upgrade Julia to a new release?

查看:35
本文介绍了如何将 Julia 升级到新版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题 1 - 升级

我在 Windows 上使用 v"0.3.8".我从

I'm using v"0.3.8" on Windows. I found from

http://julialang.org/downloads/

Current Release (v0.3.9)

我知道我可以下载预构建版本并重新安装.有没有办法(从当前安装的版本)升级到新版本?

I know I could download the prebuild version and install again. Is there a way to upgrade (from current installed version) to the new version?

Pkg.update(),运行了很长时间没有任何输出——这样不行.

There's Pkg.update(), it runs for a long time without any output - it doesn't work in this way.

来自文档:

update() 更新包元数据仓库——保存在Pkg.dir("METADATA") – 然后更新任何可以安全的固定包被从他们的起源中拉出来;然后调用 Pkg.resolve() 来确定一个新的最佳软件包版本集.

update() Update package the metadata repo – kept in Pkg.dir("METADATA") – then update any fixed packages that can safely be pulled from their origin; then call Pkg.resolve() to determine a new optimal set of packages versions.

所以它不是升级语言本身的正确工具.

So it is not the right tool to upgrade the language itself.

问题 2 - 发布说明

ReleaseNoteChangeList 这样的东西吗?或者任何关于重大变化的亮点?

Is there such a thing as ReleaseNote or ChangeList? Or any hightlight on major change?

(我知道语言还没有达到v1.0.如果有地方可以找到重大更改/改进,那很好.如果没有,那很好.)

(I understand that the language hasn't reached v1.0. If there is a place to find major change/improvement, that's good. If not, that's fine.)

推荐答案

如何升级Julia:

Windows &macOS 和Linux

升级 Julia 最简单的方法是到 下载页面 并手动安装相应的二进制文件.(更新:如果您使用的是旧 Julia,例如 v0.6)如果您要将 Julia 升级到新的次要版本(例如 v0.5=>v0.6),您可以通过以下步骤(Julia-v1.0 附带新的包管理器,因此没有这样的麻烦):

How to upgrade Julia:

Windows & MacOS & Linux

The most trivial way of upgrading Julia is to go to the download page and manually install corresponding binaries. (UPDATE: if you're on old Julia, e.g. v0.6)If you're going to upgrade Julia to a new minor version(e.g. v0.5=>v0.6), you could easily reinstall your old packages by the following steps(Julia-v1.0 shipped with the new package manager, so there is no such hassle):

  1. 朱莉娅>如果需要,使用 Pkg # Pkg.init()
  2. 将旧版本包目录中的REQUIRE文件复制到新版本(本例中从.julia/v0.5.julia/v0.6) 覆盖现有文件
  3. 朱莉娅>Pkg.resolve() # 或 Pkg.update()
  1. julia> using Pkg # Pkg.init() if needed
  2. copy REQUIRE file from package directory of the old version to the new one (in this example from .julia/v0.5 to .julia/v0.6) overwriting the existing file
  3. julia> Pkg.resolve() # or Pkg.update()

MacOS

如果您使用的是 Homebrewhomebrew-julia,请按照这里的说明进行操作.

使用 abelsiqueira 的安装程序 jill.

Use abelsiqueira's installer jill.

1.Pkg.update() 用于更新 Julia 的包,而不是 Julia 本身,因此下载预构建版本并重新安装似乎是目前升级 Julia 的唯一方法.或者您可以按照此处的说明从源代码构建 Julia.

1.Pkg.update() is used for updating Julia's packages, not Julia itself, so downloading the prebuild version and reinstalling seems to be the only way to upgrade Julia for now. Or you could build Julia from source following the instructions here.

2.此处列出了发行说明:

2.The release notes are listed here:

这篇关于如何将 Julia 升级到新版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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