我的计算机中安装了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
因此,看起来我需要清除/删除位于..的文件/用户/jack/.julia/dev/JEMSS,然后再试一次,对吗?也许是因为我不止一次克隆了这个文件?有我可以使用的命令吗?
这是因为Stats包与您的julia版本不兼容,根据消息,它看起来是0.7或1.0。只需rm
包裹。现在,您必须手动加载JuliaStats包。