DifferentialEquations.jl安装使用报错

问题:
DifferentialEquations.jl安装好了,但是无法正常运行,是什么原因,怎么处理?
版本:
Julia Version 1.0.4
Commit 38e9fb7f80 (2019-05-16 03:38 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core™ i7-3610QM CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, ivybridge)
库:
Status C:\Users\wbk\.julia\environments\v1.0\Project.toml
[c52e3926] Atom v0.8.7
[0c46a032] DifferentialEquations v6.3.0
[4076af6c] JuMP v0.19.1
[e5e0dc1b] Juno v0.7.0
运行结果:
julia> using DifferentialEquations
[ Info: Precompiling DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa
]
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\wbk.julia\packages\SpecialFunctions\fvheQ\src
SpecialFunctions.jl:6
[3] include at .\boot.jl:317 [inlined]
[4] include_relative(::Module, ::String) at .\loading.jl:1044
[5] include(::Module, ::String) at .\sysimg.jl:29
[6] top-level scope at none:2
[7] eval at .\boot.jl:319 [inlined]
[8] eval(::Expr) at .\client.jl:393
[9] top-level scope at .\none:3
in expression starting at C:\Users\wbk.julia\packages\SpecialFunctions\fvheQ\sr
c\SpecialFunctions.jl:4
ERROR: LoadError: Failed to precompile SpecialFunctions [276daf66-3868-5448-9aa4
-cd146d93841b] to C:\Users\wbk.julia\compiled\v1.0\SpecialFunctions\78gOt.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[3] _require(::Base.PkgId) at .\loading.jl:960
[4] require(::Base.PkgId) at .\loading.jl:858
[5] require(::Module, ::Symbol) at .\loading.jl:853
[6] include at .\boot.jl:317 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1044
[8] include(::Module, ::String) at .\sysimg.jl:29
[9] top-level scope at none:2
[10] eval at .\boot.jl:319 [inlined]
[11] eval(::Expr) at .\client.jl:393
[12] top-level scope at .\none:3
in expression starting at C:\Users\wbk.julia\packages\ForwardDiff\N0wMF\src\For
wardDiff.jl:9
ERROR: LoadError: Failed to precompile ForwardDiff [f6369f11-7733-5829-9624-2563
aa707210] to C:\Users\wbk.julia\compiled\v1.0\ForwardDiff\k0ETY.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[3] _require(::Base.PkgId) at .\loading.jl:960
[4] require(::Base.PkgId) at .\loading.jl:858
[5] require(::Module, ::Symbol) at .\loading.jl:853
[6] include at .\boot.jl:317 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1044
[8] include(::Module, ::String) at .\sysimg.jl:29
[9] top-level scope at none:2
[10] eval at .\boot.jl:319 [inlined]
[11] eval(::Expr) at .\client.jl:393
[12] top-level scope at .\none:3
in expression starting at C:\Users\wbk.julia\packages\NLSolversBase\KG9Ie\src\N
LSolversBase.jl:5
ERROR: LoadError: Failed to precompile NLSolversBase [d41bc354-129a-5804-8e4c-c3
7616107c6c] to C:\Users\wbk.julia\compiled\v1.0\NLSolversBase\NEDD6.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[3] _require(::Base.PkgId) at .\loading.jl:960
[4] require(::Base.PkgId) at .\loading.jl:858
[5] require(::Module, ::Symbol) at .\loading.jl:853
[6] include at .\boot.jl:317 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1044
[8] include(::Module, ::String) at .\sysimg.jl:29
[9] top-level scope at none:2
[10] eval at .\boot.jl:319 [inlined]
[11] eval(::Expr) at .\client.jl:393
[12] top-level scope at .\none:3
in expression starting at C:\Users\wbk.julia\packages\NLsolve\ltuKE\src\NLsolve
.jl:6
ERROR: LoadError: Failed to precompile NLsolve [2774e3e8-f4cf-5e23-947b-6d7e6507
3b56] to C:\Users\wbk.julia\compiled\v1.0\NLsolve\KFCNP.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[3] _require(::Base.PkgId) at .\loading.jl:960
[4] require(::Base.PkgId) at .\loading.jl:858
[5] require(::Module, ::Symbol) at .\loading.jl:853
[6] include at .\boot.jl:317 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1044
[8] include(::Module, ::String) at .\sysimg.jl:29
[9] top-level scope at none:2
[10] eval at .\boot.jl:319 [inlined]
[11] eval(::Expr) at .\client.jl:393
[12] top-level scope at .\none:3
in expression starting at C:\Users\wbk.julia\packages\SteadyStateDiffEq\xd6Wd\s
rc\SteadyStateDiffEq.jl:8
ERROR: LoadError: Failed to precompile SteadyStateDiffEq [9672c7b4-1e72-59bd-8a1
1-6ac3964bc41f] to C:\Users\wbk.julia\compiled\v1.0\SteadyStateDiffEq\lsCSw.ji.

Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[3] _require(::Base.PkgId) at .\loading.jl:960
[4] require(::Base.PkgId) at .\loading.jl:858
[5] require(::Module, ::Symbol) at .\loading.jl:853
[6] include at .\boot.jl:317 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1044
[8] include(::Module, ::String) at .\sysimg.jl:29
[9] top-level scope at none:2
[10] eval at .\boot.jl:319 [inlined]
[11] eval(::Expr) at .\client.jl:393
[12] top-level scope at .\none:3
in expression starting at C:\Users\wbk.julia\packages\DifferentialEquations\UZI
cy\src\DifferentialEquations.jl:11
ERROR: Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d4
2b7fbaa] to C:\Users\wbk.julia\compiled\v1.0\DifferentialEquations\UQdwS.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[3] _require(::Base.PkgId) at .\loading.jl:960
[4] require(::Base.PkgId) at .\loading.jl:858
[5] require(::Module, ::Symbol) at .\loading.jl:853

估计是有依赖没装好

先重装 SpecialFunctions 试试。

]build SpecialFunctions

(v1.0) pkg> build SpecialFunctions
Building SpecialFunctions →→ C:\Users\wbk\.julia\packages\SpecialFunctions\fv heQ\deps\build.log
┌┌ Error: Error building SpecialFunctions:
││ ┌┌ Warning: On Windows, creating file symlinks requires Administrator privile
ges
││ └└ @ Base.Filesystem file.jl:789
││ [ Info: Downloading Releases · JuliaMath/OpenspecfunBuilder · GitHub
download/v0.5.3-3/Openspecfun.v0.5.3.x86_64-w64-mingw32-gcc7.tar.gz to C:\Users
wbk.julia\packages\SpecialFunctions\fvheQ\deps\usr\downloads\Openspecfun.v0.5.3
.x86_64-w64-mingw32-gcc7.tar.gz…
││ ERROR: LoadError: Could not download GitHub - JuliaMath/openspecfun: A collection of special mathematical functions
Builder/releases/download/v0.5.3-3/Openspecfun.v0.5.3.x86_64-w64-mingw32-gcc7.ta
r.gz to C:\Users\wbk.julia\packages\SpecialFunctions\fvheQ\deps\usr\downloads\O
penspecfun.v0.5.3.x86_64-w64-mingw32-gcc7.tar.gz:
││ ErrorException(“”)
││ Stacktrace:
││ [1] error(::String) at .\error.jl:33
││ [2] #download#93(::Bool, ::Function, ::String, ::String) at C:\Users\wbk.ju
lia\packages\BinaryProvider\TcAwt\src\PlatformEngines.jl:498
││ [3] #download at .\none:0 [inlined]
││ [4] #download_verify#94(::Bool, ::Bool, ::Bool, ::Function, ::String, ::Stri
ng, ::String) at C:\Users\wbk.julia\packages\BinaryProvider\TcAwt\src\PlatformE
ngines.jl:567
││ [5] #download_verify at .\none:0 [inlined]
││ [6] #install#133(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::S
tring, ::String) at C:\Users\wbk.julia\packages\BinaryProvider\TcAwt\src\Prefix
.jl:314
││ [7] (::getfield(BinaryProvider, Symbol(“#kw##install”)))(::NamedTuple{(:pref
ix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::S
tring) at .\none:0
││ [8] top-level scope at C:\Users\wbk.julia\packages\SpecialFunctions\fvheQ\d
eps\build.jl:142
││ [9] include at .\boot.jl:317 [inlined]
││ [10] include_relative(::Module, ::String) at .\loading.jl:1044
││ [11] include(::Module, ::String) at .\sysimg.jl:29
││ [12] include(::String) at .\client.jl:392
image
└└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\b
uild\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1096

(v1.0) pkg> add SpecialFunctions
Updating registry at C:\Users\wbk\.julia\registries\General
Updating git-repo https://github.com/JuliaRegistries/General.git
Resolving package versions…
Updating C:\Users\wbk\.julia\environments\v1.0\Project.toml
[no changes]
Updating C:\Users\wbk\.julia\environments\v1.0\Manifest.toml
[no changes]
(v1.0) pkg> add SpecialFunctions
Updating registry at C:\Users\wbk\.julia\registries\General
Updating git-repo https://github.com/JuliaRegistries/General.git
Resolving package versions…
Updating C:\Users\wbk\.julia\environments\v1.0\Project.toml
[no changes]
Updating C:\Users\wbk\.julia\environments\v1.0\Manifest.toml
[no changes]

julia> using SpecialFunctions
[ Info: Precompiling SpecialFunctions [276daf66-3868-5448-9aa4-cd146d93841b]
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\wbk.julia\packages\SpecialFunctions\fvheQ\src
SpecialFunctions.jl:6
[3] include at .\boot.jl:317 [inlined]
[4] include_relative(::Module, ::String) at .\loading.jl:1044
[5] include(::Module, ::String) at .\sysimg.jl:29
[6] top-level scope at none:2
[7] eval at .\boot.jl:319 [inlined]
[8] eval(::Expr) at .\client.jl:393
[9] top-level scope at .\none:3
in expression starting at C:\Users\wbk.julia\packages\SpecialFunctions\fvheQ\sr
c\SpecialFunctions.jl:4
ERROR: Failed to precompile SpecialFunctions [276daf66-3868-5448-9aa4-cd146d9384
1b] to C:\Users\wbk.julia\compiled\v1.0\SpecialFunctions\78gOt.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[3] _require(::Base.PkgId) at .\loading.jl:960
[4] require(::Base.PkgId) at .\loading.jl:858
[5] require(::Module, ::Symbol) at .\loading.jl:853

还是报错,但是确实是SpecialFunctions的问题,请问应该如何解决?

使用管理员运行结果如下:
(v1.0) pkg> build SpecialFunctions
Updating registry at C:\Users\wbk\.julia\registries\General
Updating git-repo https://github.com/JuliaRegistries/General.git
Building SpecialFunctions →→ C:\Users\wbk\.julia\packages\SpecialFunctions\fv heQ\deps\build.log
┌┌ Error: Error building SpecialFunctions:
││ [ Info: Downloading Releases · JuliaMath/OpenspecfunBuilder · GitHub
download/v0.5.3-3/Openspecfun.v0.5.3.x86_64-w64-mingw32-gcc7.tar.gz to C:\Users
wbk.julia\packages\SpecialFunctions\fvheQ\deps\usr\downloads\Openspecfun.v0.5.3
.x86_64-w64-mingw32-gcc7.tar.gz…
││ ERROR: LoadError: Could not download GitHub - JuliaMath/openspecfun: A collection of special mathematical functions
Builder/releases/download/v0.5.3-3/Openspecfun.v0.5.3.x86_64-w64-mingw32-gcc7.ta
r.gz to C:\Users\wbk.julia\packages\SpecialFunctions\fvheQ\deps\usr\downloads\O
penspecfun.v0.5.3.x86_64-w64-mingw32-gcc7.tar.gz:
││ ErrorException(“”)

Openspecfun安装了,但是无法正常运行

julia> using Openspecfun
ERROR: ArgumentError: Package Openspecfun [7be4a7d9-1c45-5734-bf02-775f74237fc0]
is required but does not seem to be installed:

  • Run Pkg.instantiate() to install all recorded dependencies.

Stacktrace:
[1] _require(::Base.PkgId) at .\loading.jl:929
[2] require(::Base.PkgId) at .\loading.jl:858
[3] require(::Module, ::Symbol) at .\loading.jl:853

看这句应该还是没装好。

rm 删了重装一下。网够好可以把 DifferentialEquations.jl 删了重装,网不行就只能报什么错就 build or rm+add 那个包

离线安装都不行,还是同样的错误