如标题所示,换了新电脑后,在Julia中安装Flux时,报错,如下:
Installing known registries into
/Volumes/External/Julia/juliaPackage/ Added
Generalregistry to /Volumes/External/Julia/juliaPackage/registries Updating registry at
/Volumes/External/Julia/juliaPackage/registries/General.toml`
Resolving package versions...
Installed GPUArraysCore ─────────────── v0.2.0
Installed Adapt ─────────────────────── v4.1.1
Installed RealDot ───────────────────── v0.1.0
Installed IrrationalConstants ───────── v0.2.2
Installed DiffRules ─────────────────── v1.15.1
Installed IRTools ───────────────────── v0.4.14
Installed Transducers ───────────────── v0.4.84
Installed Flux ──────────────────────── v0.16.0
Installed Functors ──────────────────── v0.5.2
Installed ContextVariablesX ─────────── v0.1.3
Installed ArgCheck ──────────────────── v2.4.0
Installed ShowCases ─────────────────── v0.1.0
Installed Preferences ───────────────── v1.4.3
Installed PtrArrays ─────────────────── v1.2.1
Installed FLoopsBase ────────────────── v0.1.1
Installed TableTraits ───────────────── v1.0.1
Installed Accessors ─────────────────── v0.1.39
Installed DiffResults ───────────────── v1.1.0
Installed SpecialFunctions ──────────── v2.5.0
Installed NNlib ─────────────────────── v0.9.26
Installed ProgressLogging ───────────── v0.1.4
Installed Tables ────────────────────── v1.12.0
Installed DataAPI ───────────────────── v1.16.0
Installed Setfield ──────────────────── v1.1.1
Installed StaticArrays ──────────────── v1.9.9
Installed Zygote ────────────────────── v0.6.73
Installed Baselet ───────────────────── v0.1.1
Installed JLLWrappers ───────────────── v1.6.1
Installed AbstractFFTs ──────────────── v1.5.0
Installed StaticArraysCore ──────────── v1.4.3
Installed OneHotArrays ──────────────── v0.2.6
Installed Optimisers ────────────────── v0.4.2
Installed NaNMath ───────────────────── v1.0.2
Installed IteratorInterfaceExtensions ─ v1.0.0
Installed PrecompileTools ───────────── v1.2.1
Installed MicroCollections ──────────── v0.2.0
Installed ConstructionBase ──────────── v1.5.8
Installed DefineSingletons ──────────── v0.1.2
Installed EnzymeCore ────────────────── v0.8.8
Installed DataValueInterfaces ───────── v1.0.0
Installed OrderedCollections ────────── v1.7.0
Installed LLVMExtra_jll ─────────────── v0.0.34+0
Installed StructArrays ──────────────── v0.6.21
Installed NameResolution ────────────── v0.1.5
Installed InitialValues ─────────────── v0.3.1
Installed ChainRulesCore ────────────── v1.25.0
Installed MLDataDevices ─────────────── v1.6.5
Installed CEnum ─────────────────────── v0.5.0
Installed DelimitedFiles ────────────── v1.9.1
Installed ForwardDiff ───────────────── v0.10.38
Installed Reexport ──────────────────── v1.2.2
Installed SplittablesBase ───────────── v0.1.15
Installed LogExpFunctions ───────────── v0.3.29
Installed Requires ──────────────────── v1.3.0
Installed FillArrays ────────────────── v1.13.0
Installed GPUArrays ─────────────────── v11.1.0
Installed ZygoteRules ───────────────── v0.2.5
Installed CommonSubexpressions ──────── v0.3.1
Installed AliasTables ───────────────── v1.1.3
Installed ChainRules ────────────────── v1.72.1
Installed KernelAbstractions ────────── v0.9.31
Installed DataStructures ────────────── v0.18.20
Installed StatsAPI ──────────────────── v1.7.0
Installed PrettyPrint ───────────────── v0.2.0
Installed MacroTools ────────────────── v0.5.13
Installed Compat ────────────────────── v4.16.0
Installed BangBang ──────────────────── v0.4.3
Installed MLStyle ───────────────────── v0.4.17
Installed CompositionsBase ──────────── v0.1.2
Installed UnsafeAtomics ─────────────── v0.3.0
Installed OpenSpecFun_jll ───────────── v0.5.5+0
Installed SparseInverseSubset ───────── v0.1.2
Installed JuliaVariables ────────────── v0.2.4
Installed MLUtils ───────────────────── v0.4.4
Installed InverseFunctions ──────────── v0.1.17
Installed FLoops ────────────────────── v0.2.2
Installed SimpleTraits ──────────────── v0.9.4
Installed Missings ──────────────────── v1.2.0
Installed DocStringExtensions ───────── v0.9.3
Installed Atomix ────────────────────── v1.0.1
Installed StatsBase ─────────────────── v0.34.4
Installed LLVM ──────────────────────── v9.1.3
Installed SortingAlgorithms ─────────── v1.2.1
Failure artifact: LLVMExtra
Failure artifact: LLVMExtra
ERROR: Unable to automatically download/install artifact 'LLVMExtra' from sources listed in '/Volumes/External/Julia/juliaPackage/packages/LLVMExtra_jll/izCeP/Artifacts.toml'.
Sources attempted:
-
https://pkg.julialang.org/artifact/8bab92c1fb813337b8572caa758083cf40e30297
Error: Tree Hash Mismatch!
Expected git-tree-sha1: 8bab92c1fb813337b8572caa758083cf40e30297
Calculated git-tree-sha1: 8ae0cf7bae19514d29d66a91f901235d516e9ef1 -
https://github.com/JuliaBinaryWrappers/LLVMExtra_jll.jl/releases/download/LLVMExtra-v0.0.34+0/LLVMExtra.v0.0.34.aarch64-apple-darwin-llvm_version+15.tar.gz
Error: RequestError: Failure when receiving data from the peer while requesting https://github.com/JuliaBinaryWrappers/LLVMExtra_jll.jl/releases/download/LLVMExtra-v0.0.34+0/LLVMExtra.v0.0.34.aarch64-apple-darwin-llvm_version+15.tar.gz
`
我试过用Pkg安装、更改镜像、git下载后本地安装和挂梯子,错误都是这个,唯一区别是错误的哈希码不一致。
我认为是最新版本的库里面缺少对应版本的LLVMExtra导致,就换了个老版本的Flux安装,果然这个没报错,但是往下走另外一个库又报同样的错。
请问各位大佬这是咋回事,怎么解决。