安装包时,断网导致失败

(@v1.4) pkg> add TestImages
  Resolving package versions...
   Updating `C:\Users\wyd\.juliapro\JuliaPro_v1.4.1-1\environments\v1.4\Project.toml`
  [5e47fb64] + TestImages v1.0.2
   Updating `C:\Users\wyd\.juliapro\JuliaPro_v1.4.1-1\environments\v1.4\Manifest.toml`
  [5e47fb64] + TestImages v1.0.2
  [a5390f91] + ZipFile v0.9.1
┌ Error: Download failed: curl: (6) Could not resolve host: raw.githubusercontent.com
└ @ Base download.jl:43
ERROR: LoadError: failed process: Process(`'C:\Windows\System32\curl.exe' -s -S -g -L -f -o 'C:\Users\wyd\.juliapro\JuliaPro_v1.4.1-1\artifacts\jl_tasRI3\mri-stack.tif' 'https://github.com/JuliaImages/TestImages.jl/blob/gh-pages/images/mri-stack.tif?raw=true'`, ProcessExited(6)) [6]

Stacktrace:
 [1] pipeline_error at .\process.jl:525 [inlined]
 [2] download_curl(::String, ::String, ::String) at .\download.jl:44
 [3] download at .\download.jl:62 [inlined]
 [4] (::TestImages.var"#6#7"{String})(::String) at C:\Users\wyd\.juliapro\JuliaPro_v1.4.1-1\packages\TestImages\u2m7D\src\TestImages.jl:106
 [5] create_artifact(::TestImages.var"#6#7"{String}) at C:\Users\julia\AppData\Local\Julia-1.4.1\share\julia\stdlib\v1.4\Pkg\src\Artifacts.jl:214
 [6] image_path(::String) at C:\Users\wyd\.juliapro\JuliaPro_v1.4.1-1\packages\TestImages\u2m7D\src\TestImages.jl:105
 [7] testimage(::String; download_only::Bool, ops::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\wyd\.juliapro\JuliaPro_v1.4.1-1\packages\TestImages\u2m7D\src\TestImages.jl:74
 [8] testimage at C:\Users\wyd\.juliapro\JuliaPro_v1.4.1-1\packages\TestImages\u2m7D\src\TestImages.jl:74 [inlined] 
 [9] top-level scope at E:\ProgramProjects\Julia-projects\Cellular_automata.jl:27
in expression starting at E:\ProgramProjects\Julia-projects\Cellular_automata.jl:14

断网还想安装成功?不可能的,连上网重新安装就是了

Error: Download failed: curl: (6) Could not resolve host: [raw.githubusercontent.com](http://raw.githubusercontent.com/)

这个的意思应该是无法获取raw.githubusercontent.com的ip地址,建议手动改写hosts,或者挂梯子。

重新build一下

]build TestImages

好的,谢谢,我试一下