gpt4 book ai didi

jupyter-notebook - 无法在 jupyter lab 上运行 julia 1.7.3 内核

转载 作者:行者123 更新时间:2023-12-05 03:16:50 31 4
gpt4 key购买 nike

我尝试将 Julia 1.7.3 内核Jupiter lab 和 VS 代码一起使用,但没有成功。当我在 Jupiter 实验室单元中单击运行时,我在控制台中收到以下错误。我已经安装了 ipykernel 并将 IJulia 添加到 Pkg。我认为问题不在于此。

    in expression starting at /home/rohit/.julia/packages/IJulia/AQu2H/src/kernel.jl:1
[I 2022-11-15 10:54:57.314 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random ports
[ Info: Precompiling IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a]
ERROR: LoadError: ArgumentError: Package Parsers does not have SnoopPrecompile in its dependencies:
- If you have Parsers checked out for development and have
added SnoopPrecompile 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 Parsers
Stacktrace:
[1] require(into::Module, mod::Symbol)
@ Base ./loading.jl:980
[2] include(mod::Module, _path::String)
@ Base ./Base.jl:418
[3] include(x::String)
@ Parsers ~/.julia/packages/Parsers/bEa0b/src/Parsers.jl:1
[4] top-level scope
@ ~/.julia/packages/Parsers/bEa0b/src/Parsers.jl:393
[5] include
@ ./Base.jl:418 [inlined]
[6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base ./loading.jl:1318
[7] top-level scope
@ none:1
[8] eval
@ ./boot.jl:373 [inlined]
[9] eval(x::Expr)
@ Base.MainInclude ./client.jl:453
[10] top-level scope
@ none:1
in expression starting at /home/rohit/.julia/packages/Parsers/bEa0b/src/precompile.jl:1
in expression starting at /home/rohit/.julia/packages/Parsers/bEa0b/src/Parsers.jl:1
ERROR: LoadError: Failed to precompile Parsers [69de0a69-1ddd-5017-9359-2bf0b02dc9f0] to /home/rohit/.julia/compiled/v1.7/Parsers/jl_7qWIcC.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base ./loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:997
[7] include(mod::Module, _path::String)
@ Base ./Base.jl:418
[8] include(x::String)
@ JSON ~/.julia/packages/JSON/NeJ9k/src/JSON.jl:3
[9] top-level scope
@ ~/.julia/packages/JSON/NeJ9k/src/JSON.jl:11
[10] include
@ ./Base.jl:418 [inlined]
[11] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base ./loading.jl:1318
[12] top-level scope
@ none:1
[13] eval
@ ./boot.jl:373 [inlined]
[14] eval(x::Expr)
@ Base.MainInclude ./client.jl:453
[15] top-level scope
@ none:1
in expression starting at /home/rohit/.julia/packages/JSON/NeJ9k/src/Parser.jl:1
in expression starting at /home/rohit/.julia/packages/JSON/NeJ9k/src/JSON.jl:3
ERROR: LoadError: Failed to precompile JSON [682c06a0-de6a-54ab-a142-c8b1cf79cde6] to /home/rohit/.julia/compiled/v1.7/JSON/jl_CxGVlg.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base ./loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:997
[7] include
@ ./Base.jl:418 [inlined]
[8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base ./loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ ./boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude ./client.jl:453
[12] top-level scope
@ none:1
in expression starting at /home/rohit/.julia/packages/IJulia/AQu2H/src/IJulia.jl:1
ERROR: LoadError: Failed to precompile IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a] to /home/rohit/.julia/compiled/v1.7/IJulia/jl_f8oPcc.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base ./loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:1013
[6] require(into::Module, mod::Symbol)

在 VS 代码中,当我运行它时没有任何反应,也没有看到任何错误。

最佳答案

原因可能不同,取决于您使用的是什么(conda 等)。我最近在 Ubuntu 上安装了 Julia 1.8.2,它通过以下过程用 jupyter 打开(我的笔记本电脑上安装了 Jupyter):

using Pkg
Pkg.add(“IJulia”)
using IJulia
installkernel("Julia")

如果您的机器不是 Linux(我怀疑是 Mac),我强烈建议您检查这些答案:

祝你好运!

关于jupyter-notebook - 无法在 jupyter lab 上运行 julia 1.7.3 内核,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74444101/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com