Julia1.7.1安装库时出现未知错误


为了更好的让他人提供帮助,请在发帖前附上足够的诊断信息,比如:
版本信息:
julia> using InteractiveUtils; versioninfo()
Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core™ i7-8700 CPU @ 3.20GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8

包管理的状态:
julia> using Pkg; Pkg.status()
Status C:\Users\samuel\.julia\environments\v1.7\Project.toml
[ba4760a4] BayesNets v3.3.5
[6e4b80f9] BenchmarkTools v0.7.0
[336ed68f] CSV v0.9.11
[a93c6f00] DataFrames v1.3.1
[0c46a032] DifferentialEquations v6.18.0
[31c24e10] Distributions v0.23.8
[e30172f5] Documenter v0.27.10
[7a1cc6ca] FFTW v1.4.5
[587475ba] Flux v0.12.1
[7073ff75] IJulia v1.23.2
[682c06a0] JSON v0.21.2
[4076af6c] JuMP v0.21.4
[33e6dc65] MKL v0.4.2
[5fb14364] OhMyREPL v0.5.10
[69de0a69] Parsers v2.1.3
[438e738f] PyCall v1.93.0
[d330b81b] PyPlot v2.10.0
[6099a3de] PythonCall v0.5.0
[fce5fe82] Turing v0.15.1
[37e2e46d] LinearAlgebra

问题描述:执行update或者安装其他库时出现如下错误:
(@v1.7) pkg> up
Updating registry at C:\Users\samuel\.julia\registries\General.toml
No Changes to C:\Users\samuel\.julia\environments\v1.7\Project.toml
No Changes to C:\Users\samuel\.julia\environments\v1.7\Manifest.toml
Precompiling project…
◓ StatisticalTraits
◒ ArnoldiMethod
◑ TableTraits
✗ DimensionalPlotRecipes
✗ ZygoteRules
✗ Distances
✗ DataValueInterfaces
✗ MbedTLS_jll
✗ InlineStrings
✗ IrrationalConstants
✗ AxisAlgorithms
✗ AxisArrays
✗ BFloat16s
✗ NameResolution
✗ Memoize
✗ CompositionsBase
✗ ProgressMeter
✗ IterativeSolvers
✗ ChainRulesCore
✗ AbstractAlgebra
✗ IRTools
◐ Ratios
◓ CodecZlib
◓ OpenBLAS_jll
◑ libblastrampoline_jll
◒ InvertedIndices
◑ Parameters
◓ ConsoleProgressMonitor
◒ MLStyle
◐ JSON
◓ SuiteSparse_jll
◒ Inflate
◒ IfElse
◓ ConstructionBase
◒ Adapt
◓ CanonicalTraits
◐ JuliaVariables
◑ DataAPI
◓ Conda
◐ BenchmarkTools
◑ Documenter
◑ TimerOutputs
◓ Crayons
◑ ProgressLogging
◓ Scratch
◓ Setfield
◒ Unitful
◑ LoggingExtras
◓ GPUArrays
◓ OffsetArrays
◐ NNlib
◐ BinaryProvider
◐ ResettableStacks
◐ Functors
◑ PooledArrays
◓ WeakRefStrings
◒ Missings
◒ MappedArrays
◑ PyCall
◓ SimpleTraits
◐ RecursiveFactorization
◐ Baselet
◑ DiffResults
◑ LLVM
◓ ColorTypes
◐ RelocatableFolders
◒ ArrayLayouts
◓ SplittablesBase
◐ Roots
◓ CommonSubexpressions
◒ Media
◐ JLLWrappers
◑ DataStructures
◒ ArrayInterface
◒ ExponentialUtilities
◑ Libtask
◐ RandomNumbers
◐ ZipFile
◑ LeftChildRightSiblingTrees
◑ Latexify
◒ MbedTLS
◑ LibSSH2_jll
◑ LogExpFunctions
◓ ChainRules
◓ GPUCompiler
◓ Colors
◑ PackageCompiler
◐ BandedMatrices
◐ Juno
◐ Bzip2_jll
◑ libsodium_jll
◐ Rmath_jll
◒ IntelOpenMP_jll
◐ ZeroMQ_jll
◒ MKL_jll
◐ fzf_jll
◓ Sundials_jll
◑ Libiconv_jll
◐ FFTW_jll
◓ OpenSpecFun_jll
◐ NamedArrays
◓ SortingAlgorithms
◒ QuadGK
◓ GeneralizedGenerated
◓ Compose
◑ LabelledArrays
◐ FiniteDiff
◐ RecursiveArrayTools
◐ Random123
◑ TerminalLoggers
◑ HTTP
◓ StatsBase
◓ CUDA
◑ PyPlot
◒ MKL
◓ CodecBzip2
◐ Rmath
◐ ZMQ
◐ FFTW
◐ JLFzf
◑ XML2_jll
◓ SpecialFunctions
◐ JSONSchema
◑ Discretizers
◒ MicroMamba
◒ IJulia
◓ OhMyREPL
◑ LightXML
◓ StatsFuns
◓ SymbolicUtils
◑ DiffRules
◒ MathOptInterface
◓ CondaPkg
◑ Distributions
◒ AdvancedHMC
◐ ForwardDiff
◑ DistributionsAD
◑ TransformVariables
◑ Tracker
◐ JuMP
◐ Zygote
◐ NLSolversBase
◑ LogDensityProblems
◐ Flux
◑ LineSearches
◐ NLsolve
◓ Optim
┌ Error: Pkg.precompile error
│ exception =
│ IOError: could not spawn 'C:\Users\samuel\AppData\Local\Programs\Julia-1.7.1\bin\julia.exe' -Cnative '-JC:\Users\samuel\AppData\Local\Programs\Julia-1.7.1\lib\julia\sys.dll' -g1 -O0 --output-ji 'C:\Users\samuel\.julia\compiled\v1.7\Ratios\jl_F122.tmp' --output-incremental=yes --startup-file=no --history-file=no --warn-overwrite=yes --color=yes --eval 'eval(Meta.parse(read(stdin,String)))': unknown error (UNKNOWN)
│ Stacktrace:
│ [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Any})
│ @ Base .\process.jl:100
│ [2] #690
│ @ .\process.jl:113 [inlined]
│ [3] setup_stdios(f::Base.var"#690#691"{Cmd}, stdios::Vector{Any})
│ @ Base .\process.jl:197
│ [4] _spawn
│ @ .\process.jl:112 [inlined]
│ [5] _spawn(::Base.CmdRedirect, ::Vector{Any}) (repeats 2 times)
│ @ Base .\process.jl:140
│ [6] open(cmds::Base.CmdRedirect, stdio::Base.TTY; write::Bool, read::Bool)
│ @ Base .\process.jl:375
│ [7] open(cmds::Base.CmdRedirect, mode::String, stdio::Base.TTY)
│ @ Base .\process.jl:344
│ [8] create_expr_cache(pkg::Base.PkgId, input::String, output::String, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, internal_stderr::IO, internal_stdout::IO)
│ @ Base .\loading.jl:1351
│ [9] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
│ @ Base .\loading.jl:1432
│ [10] (::Pkg.API.var"#239#266"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API C:\Users\samuel\AppData\Local\Programs\Julia-1.7.1\share\julia\stdlib\v1.7\Pkg\src\API.jl:1244
│ [11] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging .\logging.jl:511
│ [12] with_logger
│ @ .\logging.jl:623 [inlined]
│ [13] macro expansion
│ @ C:\Users\samuel\AppData\Local\Programs\Julia-1.7.1\share\julia\stdlib\v1.7\Pkg\src\API.jl:1242 [inlined]
│ [14] (::Pkg.API.var"#236#263"{Bool, Vector{Task}, Pkg.API.var"#handle_interrupt#255"{Base.Event, ReentrantLock, Base.TTY}, Pkg.API.var"#color_string#253", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Pkg.Types.Manifest, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API .\task.jl:423
└ @ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.7\Pkg\src\API.jl:1115

显示是未知错误,不知如何排查

重装julia后问题解决