Windows环境下,需要到官网下载git,到指定文件夹中打开git bash。
输入命令
git clone https://github.com/NVIDIA/apex.git
时会报错。
原因可能是默认配置了https代理,这里需要改为git协议。
解决方法:
1:确保VPN打开的情况下,打开系统设置->网络和Internet->代理。找到自己的代理IP,如下:
2:在git bash 中依次输入以下指令
git config --global http.proxy http://127.0.0.1:4780
git config --global git.proxy http://127.0.0.1:4780
git config --global --unset https.proxy
问题得到解决。
继续执行git clone https://github.com/NVIDIA/apex.git
成功下载!