【问题标题】:How to install the latest version of Flux.jl?如何安装最新版本的 Flux.jl?
【发布时间】:2021-06-26 13:37:04
【问题描述】:

我正在尝试使用 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 StackOverflow [1a8df32f] to versions: 0.6.0
 │ └─StackOverflow [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

导致上述错误。

【问题讨论】:

    标签: julia flux.jl


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2020-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-26
      • 2019-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多