gpt4 book ai didi

julia - 错误 : The following package names could not be resolved: error installing package in Julia

转载 作者:行者123 更新时间:2023-12-05 01:09:58 31 4
gpt4 key购买 nike

我正在尝试使用 pkg add 安装 julia Flux,但出现以下错误,

    julia> Pkg.add("Flux")
ERROR: The following package names could not be resolved:
* Flux (not found in project, manifest or registry)
Please specify by known `name=uuid`.
Stacktrace:


[1] pkgerror(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:120
[2] #ensure_resolved#43(::Bool, ::Function, ::Pkg.Types.EnvCache, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:900
[3] #ensure_resolved at ./none:0 [inlined]
[4] #add_or_develop#15(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:64
[5] #add_or_develop at ./none:0 [inlined]
[6] #add_or_develop#14 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:34 [inlined]
[7] #add_or_develop at ./none:0 [inlined]
[8] #add_or_develop#11 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:33 [inlined]
[9] #add_or_develop at ./none:0 [inlined]
[10] #add_or_develop#10 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:32 [inlined]
[11] #add_or_develop at ./none:0 [inlined]
[12] #add#20 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:74 [inlined]
[13] add(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:74
[14] top-level scope at none:0


我尝试使用 ] 添加 https://github.com/FluxML/Flux.jl 但遇到同样的错误,谁能帮忙我也尝试添加其他包,但发生了类似的错误,我想这可能是 julia env 的错误,但我不确定所以我不想弄乱它

最佳答案

基本上,这种类型的错误要么意味着您没有 Internet 连接(或者位于包管理器阻止连接的防火墙后面),要么您的 .julia 文件夹已损坏。

在第二种情况下,最简单的尝试是删除 .julia 文件夹或将系统变量 JULIA_DEPOT_PATH 设置为指向某个空文件夹并重新启动 Julia。

关于julia - 错误 : The following package names could not be resolved: error installing package in Julia,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64649645/

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