无法安装julia软件包
我在julia中安装软件包时遇到问题我下载了最新的julia版本,并运行了:无法安装julia软件包,julia,Julia,我在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
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 config --global url."https://".insteadOf git://
正如。问题在于您的git配置。您有两个URL重写规则。特定于github的是冗余的,并且在其匹配规则中缺少尾随的反斜杠。您只需删除它:
git config --global --unset url.https://github.com/.insteadof
刚意识到URL上写着
https://github.com//JuliaLang/ArrayViews.jl.git/
加上一个额外的/
,想知道这是否是一个因素。后面的/
看起来不错-问题是github.com//JuliaLang
中的双/
。不过,我不知道这是怎么弄到的,也不知道该如何移除。也许这是因为对git url进行了不同的修改?通过尝试修复它,我可能把事情搞得更糟了。您可以发布versioninfo()
?的输出和git config--get regexp'^url.*'
在shell提示符下的输出吗?添加了这两条信息