首页 > 解决方案 > julia 1.4.2中关于JuMP 0.18.6的具体安装问题

问题描述

Downloading artifact: CompilerSupportLibraries
curl: (52) Empty reply from server                                            
ERROR: LoadError: Unable to automatically install 'CompilerSupportLibraries' from '/home/zyh/.julia/packages/CompilerSupportLibraries_jll/790hI/Artifacts.toml'
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] ensure_artifact_installed(::String, ::Dict{String,Any}, ::String; platform::Pkg.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool) at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/Artifacts.jl:894
 [3] ensure_all_artifacts_installed(::String; platform::Pkg.BinaryPlatforms.Platform, pkg_uuid::Nothing, include_lazy::Bool, verbose::Bool, quiet_download::Bool) at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/Artifacts.jl:958
 [4] download_artifacts(::Pkg.Types.Context, ::Array{String,1}; platform::Pkg.BinaryPlatforms.Linux, verbose::Bool) at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:616
 [5] download_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; platform::Pkg.BinaryPlatforms.Linux, verbose::Bool) at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:595
 [6] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux) at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:1091
 [7] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:159
 [8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:112
 [9] #add#27 at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:109 [inlined]
 [10] add at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:109 [inlined]
 [11] #add#23 at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:106 [inlined]
 [12] add(::Pkg.Types.PackageSpec) at /usr/local/julia/julia-1.4.2/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:106
 [13] top-level scope at /home/zyh/DOLPHYN_old/julenv.jl:20
 [14] include(::String) at ./client.jl:439
 [15] top-level scope at REPL[1]:1

我正在尝试在 Julia 1.4.2 中使用 JuMP 0.18.6 构建特定环境。但是在下载 JuMP 时,似乎这个问题阻止了我的可能。有没有人遇到过这种情况并有解决方案?

标签: juliajulia-jump

解决方案


这可能是由于某种防火墙,如果你来自中国,请尝试镜像源: https ://mirrors.tuna.tsinghua.edu.cn/help/julia/


推荐阅读