尝试将 IJulia 添加到 Julia 包中,以便它可以在 Jupyter notebook 中运行。命令
Pkg.add("IJulia")
给出这串信息和错误:
INFO: Initializing package repository /var/root/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
fatal: unable to connect to github.com:
github.com[0: 192.30.252.128]: errno=Operation timed out
ERROR: failed process: Process(`git clone -q -b metadata-v2 git://github.com/JuliaLang/METADATA.jl METADATA`, ProcessExited(128)) [128]
in run at /Applications/Julia-0.4.1.app/Contents/Resources/julia/lib/julia/sys.dylib
in anonymous at pkg/dir.jl:52
in cd at /Applications/Julia-0.4.1.app/Contents/Resources/julia/lib/julia/sys.dylib
in init at pkg/dir.jl:50
in cd at pkg/dir.jl:28
in add at pkg.jl:23
显而易见的答案是我没有与 github 的连接,但事实并非如此;我可以从命令行从 github 克隆(例如
git clone https://github.com/bokeh/bokeh.git
工作正常)
这是 Julia-0.4.1、git 版本 2.4.9 (Apple Git-60)、MacOSX 10.10.5。