为什么跟着教程走复现不了示例代码?
一般问题
发布于 2025-09-28 13:13:35
查看 19过去274天

按教程走的
以下是报错代码:
julia> 正在运行 test.jl
ERROR: ArgumentError: Package Typlot not found in current path.
- Run
import Pkg; Pkg.add("Typlot")to install the Typlot package.
Stacktrace:
[1] macro expansion
@ .\loading.jl:1630 [inlined]
[2] macro expansion
@ .\lock.jl:267 [inlined]
[3] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1611
[4] eval
@ .\boot.jl:370 [inlined]
[5] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1903
[6] include_string(m::Module, txt::String, fname::String)
@ Base .\loading.jl:1913
[7] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base .\essentials.jl:819
[8] invokelatest(::Any, ::Any, ::Vararg{Any})
@ Base .\essentials.jl:816
[9] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
@ VSCodeServer C:\Users\Public\TongYuan.syslab-oss\extensions\tongyuan.syslab-julia-0.9.17\scripts\packages\VSCodeServer\src\eval.jl:310
[10] (::VSCodeServer.var"#87#92"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer C:\Users\Public\TongYuan.syslab-oss\extensions\tongyuan.syslab-julia-0.9.17\scripts\packages\VSCodeServer\src\eval.jl:186
[11] withpath(f::VSCodeServer.var"#87#92"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
@ VSCodeServer C:\Users\Public\TongYuan.syslab-oss\extensions\tongyuan.syslab-julia-0.9.17\scripts\packages\VSCodeServer\src\repl.jl:285
[12] (::VSCodeServer.var"#86#91"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer C:\Users\Public\TongYuan.syslab-oss\extensions\tongyuan.syslab-julia-0.9.17\scripts\packages\VSCodeServer\src\eval.jl:183
[13] hideprompt(f::VSCodeServer.var"#86#91"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
@ VSCodeServer C:\Users\Public\TongYuan.syslab-oss\extensions\tongyuan.syslab-julia-0.9.17\scripts\packages\VSCodeServer\src\repl.jl:38
[14] (::VSCodeServer.var"#85#90"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer C:\Users\Public\TongYuan.syslab-oss\extensions\tongyuan.syslab-julia-0.9.17\scripts\packages\VSCodeServer\src\eval.jl:154
[15] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:514
[16] with_logger
@ .\logging.jl:626 [inlined]
[17] (::VSCodeServer.var"#84#89"{VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer C:\Users\Public\TongYuan.syslab-oss\extensions\tongyuan.syslab-julia-0.9.17\scripts\packages\VSCodeServer\src\eval.jl:290
[18] #invokelatest#2
@ .\essentials.jl:819 [inlined]
[19] invokelatest(::Any)
@ Base .\essentials.jl:816
[20] macro expansion
@ C:\Users\Public\TongYuan.syslab-oss\extensions\tongyuan.syslab-julia-0.9.17\scripts\packages\VSCodeServer\src\eval.jl:36 [inlined]
[21] (::VSCodeServer.var"#82#83")()
@ VSCodeServer .\task.jl:514
所属专栏:Syslab基础平台
产品信息:Syslab科学计算环境