gpt4 book ai didi

julia - 无法安装 julia 包

转载 作者:行者123 更新时间:2023-12-04 22:45:30 27 4
gpt4 key购买 nike

我在 julia 中安装软件包时遇到问题我已经下载了最新的 julia 版本并运行了:

Pkg.init()

然后我尝试添加一个包并抛出错误。我删除了/.julia 目录以进行全新安装,但似乎没有任何效果。知道发生了什么吗?
julia> Pkg.add("Distributions")

INFO: Cloning cache of ArrayViews from git://github.com/JuliaLang/ArrayViews.jl.git
fatal: unable to access 'https://github.com//JuliaLang/ArrayViews.jl.git/': The requested URL returned error: 400
ERROR: unlink: no such file or directory (ENOENT)
in wait at task.jl:51
in sync_end at /Applications/Julia-0.3.6.app/Contents/Resources/julia/lib/julia/sys.dylib
in add at pkg/entry.jl:319
in add at pkg/entry.jl:71
in anonymous at pkg/dir.jl:28
in cd at /Applications/Julia-0.3.6.app/Contents/Resources/julia/lib/julia/sys.dylib
in __cd#228__ at /Applications/Julia-0.3.6.app/Contents/Resources/julia/lib/julia/sys.dylib
in add at pkg.jl:20

版本信息:
julia> versioninfo()

Julia Version 0.3.6
Commit 0c24dca* (2015-02-17 22:12 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3

git 命令:
> git config --get-regexp '^url.*'

url.https://github.com/.insteadof git://github.com
url.https://.insteadof git://

最佳答案

问题出在您的 git 配置中。您有两个 URL 重写规则。特定于 github 的一个是多余的,并且在其匹配规则中缺少尾随反斜杠。你可以简单地删除它:

git config --global --unset url.https://github.com/.insteadof

关于julia - 无法安装 julia 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28883212/

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