无法安装Julia软件包

时间:2016-10-19 10:55:10

标签: packages julia

我无法安装julia套餐,你能帮忙吗?我收到以下错误消息

julia> Pkg.add("XGBoost")
INFO: Cloning cache of XGBoost from https://github.com/dmlc/XGBoost.jl.git
ERROR: Cannot clone XGBoost from https://github.com/dmlc/XGBoost.jl.git. failed
to send request: The server name or address could not be resolved

 in prefetch(::String, ::String, ::Array{String,1}) at .\pkg\cache.jl:56
 in resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{Version
Number,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::D
ict{String,Base.Pkg.Types.Fixed}, ::Dict{String,VersionNumber}, ::Set{String}) a
t .\pkg\entry.jl:512
 in resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{Version
Number,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::D
ict{String,Base.Pkg.Types.Fixed}) at .\pkg\entry.jl:476
 in edit(::Function, ::String, ::Base.Pkg.Types.VersionSet, ::Vararg{Base.Pkg.Ty
pes.VersionSet,N}) at .\pkg\entry.jl:30
 in (::Base.Pkg.Entry.##2#5{String,Base.Pkg.Types.VersionSet})() at .\task.jl:36
0
 in sync_end() at .\task.jl:311
 in macro expansion at .\task.jl:327 [inlined]
 in add(::String, ::Base.Pkg.Types.VersionSet) at .\pkg\entry.jl:51
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at
.\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::S
tring) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at
.\pkg\dir.jl:31
 in add(::String) at .\pkg\pkg.jl:100

我试过了

git config --global url."https://".insteadOf git://

这没有帮助。我在工作中联系。看起来像代理/防火墙问题。

如何解决此问题?

我使用的是Windows 7,julia 0.5.0,git 2.10.1.windows.1。

我可以从网页上手动下载zip。

0 个答案:

没有答案