预编译Images库时出错了怎么办

           _

_ _ ()_ | Documentation: https://docs.julialang.org
() | () () |
_ _ | | __ _ | Type “?” for help, “]?” for Pkg help.
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 1.2.0 (2019-08-20)
/ |_|||_’_| | Official https://julialang.org/ release
|__/ |

julia> using Images
[ Info: Precompiling Images [916415d5-f1e6-5110-898d-aaa5f9f070e0]
ERROR: LoadError: SpecialFunctions is not installed properly, run Pkg.build("Sp ecialFunctions"),restart Julia and try again
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] top-level scope at C:\Users\Qling.julia\packages\SpecialFunctions\ne2iw\sr
c\SpecialFunctions.jl:6
[3] include at .\boot.jl:328 [inlined]
[4] include_relative(::Module, ::String) at .\loading.jl:1094
[5] include(::Module, ::String) at .\Base.jl:31
[6] top-level scope at none:2
[7] eval at .\boot.jl:330 [inlined]
[8] eval(::Expr) at .\client.jl:432
[9] top-level scope at .\none:3
in expression starting at C:\Users\Qling.julia\packages\SpecialFunctions\ne2iw
src\SpecialFunctions.jl:4
ERROR: LoadError: Failed to precompile SpecialFunctions [276daf66-3868-5448-9aa4
-cd146d93841b] to C:\Users\Qling.julia\compiled\v1.2\SpecialFunctions\78gOt.ji.

Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253
[3] _require(::Base.PkgId) at .\loading.jl:1013
[4] require(::Base.PkgId) at .\loading.jl:911
[5] require(::Module, ::Symbol) at .\loading.jl:906
[6] include at .\boot.jl:328 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1094
[8] include(::Module, ::String) at .\Base.jl:31
[9] top-level scope at none:2
[10] eval at .\boot.jl:330 [inlined]
[11] eval(::Expr) at .\client.jl:432
[12] top-level scope at .\none:3
in expression starting at C:\Users\Qling.julia\packages\ColorVectorSpace\qOOQJ
src\ColorVectorSpace.jl:5
ERROR: LoadError: Failed to precompile ColorVectorSpace [c3611d14-8923-5661-9e6a
-0046d554d3a4] to C:\Users\Qling.julia\compiled\v1.2\ColorVectorSpace\7uC4N.ji.

Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253
[3] _require(::Base.PkgId) at .\loading.jl:1013
[4] require(::Base.PkgId) at .\loading.jl:911
[5] require(::Module, ::Symbol) at .\loading.jl:906
[6] include at .\boot.jl:328 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1094
[8] include(::Module, ::String) at .\Base.jl:31
[9] top-level scope at none:2
[10] eval at .\boot.jl:330 [inlined]
[11] eval(::Expr) at .\client.jl:432
[12] top-level scope at .\none:3
in expression starting at C:\Users\Qling.julia\packages\Images\BEHlD\src\Images
.jl:32
ERROR: Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to C:
Users\Qling.julia\compiled\v1.2\Images\H8Vxc.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253
[3] _require(::Base.PkgId) at .\loading.jl:1013
[4] require(::Base.PkgId) at .\loading.jl:911
[5] require(::Module, ::Symbol) at .\loading.jl:906

(v1.2) pkg> add Images
Updating registry at C:\Users\Qling\.julia\registries\General
┌┌ Warning: Some registries failed to update:
││ —— C:\Users\Qling\.julia\registries\General —— registry dirty
└└ @ Pkg.Types C:\cygwin\home\Administrator\buildbot\worker\package_win64\build
usr\share\julia\stdlib\v1.2\Pkg\src\Types.jl:1171
Resolving package versions…
Updating C:\Users\Qling\.julia\environments\v1.2\Project.toml
[no changes]
Updating C:\Users\Qling\.julia\environments\v1.2\Manifest.toml
[no changes]

julia> using Images
[ Info: Precompiling Images [916415d5-f1e6-5110-898d-aaa5f9f070e0]
ERROR: LoadError: SpecialFunctions is not installed properly, run Pkg.build("Sp ecialFunctions"),restart Julia and try again
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] top-level scope at C:\Users\Qling.julia\packages\SpecialFunctions\ne2iw\sr
c\SpecialFunctions.jl:6
[3] include at .\boot.jl:328 [inlined]
[4] include_relative(::Module, ::String) at .\loading.jl:1094
[5] include(::Module, ::String) at .\Base.jl:31
[6] top-level scope at none:2
[7] eval at .\boot.jl:330 [inlined]
[8] eval(::Expr) at .\client.jl:432
[9] top-level scope at .\none:3
in expression starting at C:\Users\Qling.julia\packages\SpecialFunctions\ne2iw
src\SpecialFunctions.jl:4
ERROR: LoadError: Failed to precompile SpecialFunctions [276daf66-3868-5448-9aa4
-cd146d93841b] to C:\Users\Qling.julia\compiled\v1.2\SpecialFunctions\78gOt.ji.

Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253
[3] _require(::Base.PkgId) at .\loading.jl:1013
[4] require(::Base.PkgId) at .\loading.jl:911
[5] require(::Module, ::Symbol) at .\loading.jl:906
[6] include at .\boot.jl:328 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1094
[8] include(::Module, ::String) at .\Base.jl:31
[9] top-level scope at none:2
[10] eval at .\boot.jl:330 [inlined]
[11] eval(::Expr) at .\client.jl:432
[12] top-level scope at .\none:3
in expression starting at C:\Users\Qling.julia\packages\ColorVectorSpace\qOOQJ
src\ColorVectorSpace.jl:5
ERROR: LoadError: Failed to precompile ColorVectorSpace [c3611d14-8923-5661-9e6a
-0046d554d3a4] to C:\Users\Qling.julia\compiled\v1.2\ColorVectorSpace\7uC4N.ji.

Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253
[3] _require(::Base.PkgId) at .\loading.jl:1013
[4] require(::Base.PkgId) at .\loading.jl:911
[5] require(::Module, ::Symbol) at .\loading.jl:906
[6] include at .\boot.jl:328 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1094
[8] include(::Module, ::String) at .\Base.jl:31
[9] top-level scope at none:2
[10] eval at .\boot.jl:330 [inlined]
[11] eval(::Expr) at .\client.jl:432
[12] top-level scope at .\none:3
in expression starting at C:\Users\Qling.julia\packages\Images\BEHlD\src\Images
.jl:32
ERROR: Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to C:
Users\Qling.julia\compiled\v1.2\Images\H8Vxc.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253
[3] _require(::Base.PkgId) at .\loading.jl:1013
[4] require(::Base.PkgId) at .\loading.jl:911
[5] require(::Module, ::Symbol) at .\loading.jl:906

julia>

运行 Pkg.build(“SpecialFunctions”) 再试,继续出类似这样的就继续这样试下去。

1 个赞

好的 谢谢哈哈哈

PR opened: add installation note on proxy by johnnychen94 · Pull Request #64 · JuliaImages/juliaimages.github.io · GitHub

好的 已解决 谢谢哈

我也遇到一样的错误提示了,方便说一下是怎么解决的吗?还有可不可以问一下PR是什么,网上也没搜到,我是小白对不起……

  1. 我在预编译Images库时遇到了一堆连环Error,全是类似“ERROR: LoadError:”的格式。后来发现了一个解决方法:安装julia1.3. 参考
    Issues · JuliaIO/ImageMagick.jl · GitHub
  2. PR, 全称pull request,拉取请求,是一种代码协作方式,“请求”别人将你的代码“拉取”(整合)到他们的代码中。

最主要的原因还是中国访问github和aws的网络状况不太好,导致下载失败,并不是Images特有的问题。目前装包的话一般都需要挂代理才行。