1

我正在尝试使用 Julia 1.6 安装最新版本的 Flux.jl。当我这样做时add Flux,它会添加 versionFlux v0.8.3但查看 GitHub,似乎最新版本是 version 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

这导致了上面的错误。

4

1 回答 1

1

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

于 2021-06-26T13:37:04.907 回答