Makie包出现ERROR: LoadError:

using Makie
> ERROR: LoadError:
ArgumentError: Package AdaptStaticArraysCoreExt does not have Adapt in its dependencies: - You may have a partially installed environment. Try `Pkg.instantiate()` to ensure all packages in the environment are installed. - Or, if you have AdaptStaticArraysCoreExt checked out for development and have added Adapt as a dependency but haven't updated your primary environment's manifest file, try `Pkg.resolve()`. - Otherwise you may need to report an issue with AdaptStaticArraysCoreExt
using Pkg
Pkg.status("Makie")
> Status `E:\Apps\JuliaPKG\environments\v1.10\Project.toml`
  [ee78f7c6] Makie v0.20.3
versioninfo()
Julia Version 1.10.0
Commit 3120989f39 (2023-12-25 18:01 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 24 × 13th Gen Intel(R) Core(TM) i7-13700K
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, goldmont)
  Threads: 35 on 24 virtual cores
Environment:
  JULIA_DEPOT_PATH = E:\APPs\JuliaPKG
  JULIA_NUM_THREADS = 24
  JULIA_PKG_SERVER = https://mirrors.tuna.tsinghua.edu.cn/julia

请问应该怎么解决?

1 个赞

语言基础/环境配置 - Roadmap (juliacn.com)

更换 JULIA_PKG_SERVER

感谢回复,

更换 JULIA_PKG_SERVER = https://mirrors.cernet.edu.cn/julia 仍未解决,

似乎不是安装的问题,是在调用时出现问题

using Pkg

Pkg.status("Makie")
Status `E:\Apps\JuliaPKG\environments\v1.10\Project.toml`
  [ee78f7c6] Makie v0.20.3
versioninfo()

删了Makei up下重装下试试

你是在哪个环境里安装的包?从错误提示看貌似是以前安装的时候发生了错误。

try Pkg.resolve()

感谢以上回复,该问题已解决,通过重新安装了Adapt包

Pkg.rm("Adapt")
Pkg.add("Adapt")

1 个赞