Julia 1.6:无法 git 在 Windows 上使用代理克隆(但 git 单独可以)
Julia 1.6: can't git clone using proxy (but git alone can) on Windows
我尝试在 git
上使用代理配置来实现更快的连接,我的配置是 git config --global http.proxy socks5://127.0.0.1:1080
,它在 git
上运行良好。然而,在应用这个之后,我的 Julia 包安装失败如下:
(@v1.6) pkg> add IJulia
Installing known registries into `C:\Users\kyu\.julia`
Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:HTTP, invalid URL: 'socks5://127.0.0.1:1080')
如果我通过 git config --global --unset http.proxy
取消设置代理,它会恢复正常。
此外,我想问一下,在这种情况下,我使用 git
成功 git clone
存储库,我如何在 Julia 本地安装这个包,这样我就可以跳过代理问题?
尝试了很多方法但都失败了,唯一的解决办法是在 Windows.
上配置系统智能代理
开始菜单=>代理设置=>使用代理服务器=>保存
我尝试在 git
上使用代理配置来实现更快的连接,我的配置是 git config --global http.proxy socks5://127.0.0.1:1080
,它在 git
上运行良好。然而,在应用这个之后,我的 Julia 包安装失败如下:
(@v1.6) pkg> add IJulia
Installing known registries into `C:\Users\kyu\.julia`
Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:HTTP, invalid URL: 'socks5://127.0.0.1:1080')
如果我通过 git config --global --unset http.proxy
取消设置代理,它会恢复正常。
此外,我想问一下,在这种情况下,我使用 git
成功 git clone
存储库,我如何在 Julia 本地安装这个包,这样我就可以跳过代理问题?
尝试了很多方法但都失败了,唯一的解决办法是在 Windows.
上配置系统智能代理开始菜单=>代理设置=>使用代理服务器=>保存