我的计算机上安装了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,然后再试一次,对吗?也许是因为我猜了多次克隆此文件?有没有我可以使用的命令?
答案 0 :(得分:1)
这是因为Stats软件包与您的julia版本不兼容,根据消息,它看起来像是0.7或1.0。只需rm
包裹即可。现在,您必须手动加载JuliaStats软件包。