Я пытаюсь запустить этот пример кода из документации (https://docs.julialang.org/en/latest/stdlib/DelimitedFiles/#DelimitedFiles.readdlm-Tuple{Any,AbstractChar,Type,AbstractChar}):
using DelimitedFiles
x = [1; 2; 3; 4];
y = [5; 6; 7; 8];
open("delim_file.txt", "w") do io
writedlm(io, [x y])
end
readdlm("delim_file.txt", '\t', Int, '\n')
Но я получаю следующую ошибку:
ERROR: LoadError: ArgumentError: Module DelimitedFiles not found in current path.
Run `Pkg.add("DelimitedFiles")` to install the DelimitedFiles package.
Stacktrace:
[1] _require(::Symbol) at .\loading.jl:435
[2] require(::Symbol) at .\loading.jl:405
[3] include_from_node1(::String) at .\loading.jl:576
[4] include(::String) at .\sysimg.jl:14
[5] process_options(::Base.JLOptions) at .\client.jl:305
[6] _start() at .\client.jl:371
while loading E:\Dropbox\computer_sync_hardlink\julia\beispiel\beispiel.jl, in expression starting on line 1
и при запуске Pkg.add("DelimitedFiles")
:
ERROR: unknown package DelimitedFiles
macro expansion at .\pkg\entry.jl:53 [inlined]
(::Base.Pkg.Entry.##1#3{String,Base.Pkg.Types.VersionSet})() at .\task.jl:335
Stacktrace:
[1] sync_end() at .\task.jl:287
[2] macro expansion at .\task.jl:303 [inlined]
[3] add(::String, ::Base.Pkg.Types.VersionSet) at .\pkg\entry.jl:51
[4] (::Base.Pkg.Dir.##3#6{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at .\pkg\dir.jl:33
[5] cd(::Base.Pkg.Dir.##3#6{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at .\file.jl:59
[6] withenv(::Base.Pkg.Dir.##2#5{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String},String}, ::Pair{String,String}, ::Vararg{Pair{String,String},N} where N) at .\env.jl:157
[7] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N} where N) at .\pkg\dir.jl:32
[8] add(::String) at .\pkg\pkg.jl:117
Я действительно не понимаю, что с ним не так.