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

查看:616
本文介绍了如何将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-发行说明

是否存在诸如 ReleaseNote ChangeList 的东西?或在重大变化方面有什么亮点?

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. julia> using Pkg # Pkg.init() if needed
  2. REQUIRE文件从旧版本的软件包目录复制到新版本(本例中为.julia/v0.5.julia/v0.6),从而覆盖现有文件
  3. julia> Pkg.resolve() # or 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

如果您使用的是 Homebrew 此处的说明进行操作.

使用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:

  • https://github.com/JuliaLang/julia/blob/master/HISTORY.md
  • https://github.com/JuliaLang/julia/blob/master/NEWS.md

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

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