为什么Julia pro安装Metalhead出现一下问题

Unsatisfiable requirements detected for package Images [916415d5]:
Images [916415d5] log:
├─possible versions are: [0.2.0-0.2.50, 0.3.0-0.3.3, 0.4.0-0.4.50, 0.5.0-0.5.14, 0.6.0-0.6.1, 0.7.0, 0.8.0, 0.9.0-0.9.1, 0.10.0-0.10.1, 0.11.0-0.11.5, 0.12.0, 0.13.0, 0.14.0, 0.15.0-0.15.1, 0.16.0-0.16.1, 0.17.0-0.17.3, 0.18.0] or uninstalled
├─restricted to versions 0.18.0 by an explicit requirement, leaving only versions 0.18.0
└─restricted by compatibility requirements with Metalhead [dbeba491] to versions: [0.2.0-0.2.50, 0.3.0-0.3.3, 0.4.0-0.4.50, 0.5.0-0.5.14, 0.6.0-0.6.1, 0.7.0, 0.8.0, 0.9.0-0.9.1, 0.10.0-0.10.1, 0.11.0-0.11.5, 0.12.0, 0.13.0, 0.14.0, 0.15.0-0.15.1, 0.16.0-0.16.1, 0.17.0-0.17.3] — no versions left
└─Metalhead [dbeba491] log:
├─possible versions are: [0.1.0-0.1.2, 0.2.0, 0.3.0] or uninstalled
├─restricted to versions * by an explicit requirement, leaving only versions [0.1.0-0.1.2, 0.2.0, 0.3.0]
└─restricted by julia compatibility requirements to versions: 0.3.0 or uninstalled, leaving only versions: 0.3.0
#propagate_constraints!#61(::Bool, ::Function, ::Pkg.GraphType.Graph, ::Set{Int64}) at GraphType.jl:1005
propagate_constraints! at GraphType.jl:946 [inlined]
#simplify_graph!#121(::Bool, ::Function, ::Pkg.GraphType.Graph, ::Set{Int64}) at GraphType.jl:1460
simplify_graph! at GraphType.jl:1460 [inlined]
simplify_graph! at GraphType.jl:1460 [inlined]
resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Nothing) at Operations.jl:388
resolve_versions! at Operations.jl:328 [inlined]
#add_or_develop#63(::Array{Base.UUID,1}, ::Symbol, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at Operations.jl:1235
#add_or_develop at none:0 [inlined]
#add_or_develop#17(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at API.jl:59
#add_or_develop at none:0 [inlined]
#add_or_develop#16 at API.jl:36 [inlined]
#add_or_develop at none:0 [inlined]
#add_or_develop#13 at API.jl:34 [inlined]
#add_or_develop at none:0 [inlined]
#add_or_develop#12(::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:mode,),Tuple{Symbol}}}, ::Function, ::String) at API.jl:33
#add_or_develop at none:0 [inlined]
#add#22 at API.jl:64 [inlined]
add(::String) at API.jl:64
top-level scope at none:0

这主要是因为有些依赖限制导致的。

  1. 如果你想在全局使用,建议直接裸装Julia就行了,然后爱装啥包就装啥。
  2. 如果觉得Julia pro 还蛮好用,那就保留Julia pro里的包,再新建一个project,然后在这个目录下安装Metahead。

谢谢,我已经解决了,metal head中支持的image包并不是最新的,要先安装metalhead就可以了

1 个赞