一、命令行代理
export all_proxy=socks5://127.0.0.1:10808
二、git clone 代理
设置代理
git config --global http.proxy socks5://127.0.0.1:10808
git config --global https.proxy socks5://127.0.0.1:10808
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
三、pip使用国内源下载
pip install -i https://mirrors.aliyun.com/pypi/simple/ xxx // 指定国内阿里云的源进行下载,其中xxx表示要安装的包名
网友评论