首页 > 解决方案 > Julia Pkg.clone()ERROR: Unsatisfiable requirements detected for package Stats [072d6d2a]:

问题描述

我的计算机中安装了 Julia、Juno 和 Atom。它运作良好。我试图基于此链接使用 Pkg.clone():https ://github.com/uoa-ems-research/JEMSS.jl 我收到如下错误消息:

julia> Pkg.clone("https://github.com/samridler/JEMSS.jl.git")
  Updating git-repo `https://github.com/samridler/JEMSS.jl.git`
[ Info: Assigning UUID 24979329-2a3d-50cf-82e3-05af2f1830ac to JEMSS
[ Info: Path `/Users/jack/.julia/dev/JEMSS` exists and looks like the correct package, using existing path instead of cloning
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Stats [072d6d2a]:
 Stats [072d6d2a] log:
 ├─possible versions are: [0.0.1, 0.1.0] or uninstalled
 ├─restricted to versions 0.0.0-* by JEMSS [24979329], leaving only versions [0.0.1, 0.1.0]
 │ └─JEMSS [24979329] log:
 │   ├─possible versions are: 0.0.0 or uninstalled
 │   └─JEMSS [24979329] is fixed to version 0.0.0
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left
Stacktrace:
 [1] #propagate_constraints!#61(::Bool, ::Function, ::Pkg.GraphType.Graph, ::Set{Int64}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:1005
 [2] propagate_constraints! at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:946 [inlined]
 [3] #simplify_graph!#121(::Bool, ::Function, ::Pkg.GraphType.Graph, ::Set{Int64}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:1460
 [4] simplify_graph! at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:1460 [inlined]
 [5] macro expansion at ./logging.jl:317 [inlined]
 [6] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Nothing) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:353
 [7] resolve_versions! at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:316 [inlined]
 [8] #add_or_develop#62(::Array{Base.UUID,1}, ::Symbol, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1201
 [9] #add_or_develop at ./none:0 [inlined]
 [10] #add_or_develop#13(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:64
 [11] #add_or_develop at ./none:0 [inlined]
 [12] #develop#19 at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:70 [inlined]
 [13] develop at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:70 [inlined]
 [14] macro expansion at ./logging.jl:308 [inlined]
 [15] clone(::String, ::String) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:468 (repeats 2 times)
 [16] top-level scope at none:0

所以,看起来我需要清除/删除位于的文件。./Users/jack/.julia/dev/JEMSS 再试一次,对吧?也许是因为我猜我不止一次克隆了这个文件?有我可以使用的命令吗?

标签: julia

解决方案


这是因为 Stats 包与您的 julia 版本不兼容,根据消息看起来它是 0.7 或 1.0。只是rm包裹。现在,您必须手动加载 JuliaStats 包。


推荐阅读