如何安装最新版本的Flux.jl?

How to install the latest version of Flux.jl?

我正在尝试使用 Julia 1.6 安装最新版本的 Flux.jl。当我执行 add Flux 时,它会添加版本 Flux v0.8.3,但查看 GitHub,似乎最新版本是版本 0.12.x。我的环境中有以下软件包:

(@v1.6) pkg> st
      Status `~/.julia/environments/v1.6/Project.toml`
  [5ae59095] Colors v0.9.6
  [8f4d0f93] Conda v1.5.2
  [7876af07] Example v0.5.3
  [587475ba] Flux v0.8.3
  [7073ff75] IJulia v1.23.2
  [91a5bcdd] Plots v1.0.14

我已经尝试删除 Flux 并重新添加它。我也试过:

(@v1.6) pkg> up Flux
    Updating registry at `~/.julia/registries/General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
    Updating registry at `~/.julia/registries/JuliaPOMDP`
    Updating git-repo `https://github.com/JuliaPOMDP/Registry`
  No Changes to `~/.julia/environments/v1.6/Project.toml`
  No Changes to `~/.julia/environments/v1.6/Manifest.toml`

我尝试添加我想要的特定版本:

(@v1.6) pkg> add Flux@v0.12.4
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package CodecZlib [944b1d66]:
 CodecZlib [944b1d66] log:
 ├─possible versions are: 0.4.4-0.7.0 or uninstalled
 ├─restricted by compatibility requirements with Whosebug [1a8df32f] to versions: 0.6.0
 │ └─Whosebug [1a8df32f] log:
 │   ├─possible versions are: 0.1.0-0.1.2 or uninstalled
 │   └─restricted to versions * by an explicit requirement, leaving only versions 0.1.0-0.1.2
 └─restricted by compatibility requirements with Flux [587475ba] to versions: 0.7.0 — no versions left
   └─Flux [587475ba] log:
     ├─possible versions are: 0.4.1-0.12.4 or uninstalled
     └─restricted to versions 0.12.4 by an explicit requirement, leaving only versions 0.12.4

导致上述错误。

上面列出的其他软件包之一导致 Flux 版本上限为 v0.8.3(我猜是 Conda,但不确定)。通过删除除 IJulia 之外的所有包,我能够执行 up Flux 并将其转到 [587475ba] ↑ Flux v0.8.3 ⇒ v0.12.4.