From fb065d5d9c2d6a2de16ba1db1014ab6562c83fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=AB=E8=84=82=E8=82=AA=E7=9A=84=E6=B2=99=E8=8C=B6?= =?UTF-8?q?=E9=85=B1?= Date: Sun, 11 Oct 2020 22:25:34 +0800 Subject: [PATCH] Update readme.md --- 下载加速Clone、AWS、Git镜像/readme.md | 29 ++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/下载加速Clone、AWS、Git镜像/readme.md b/下载加速Clone、AWS、Git镜像/readme.md index 719b912..68f991d 100644 --- a/下载加速Clone、AWS、Git镜像/readme.md +++ b/下载加速Clone、AWS、Git镜像/readme.md @@ -1,6 +1,6 @@ -### git下载 +## git下载 使用淘宝源加快国内git下载 @@ -158,3 +158,30 @@ git config --global --unset https.proxy 'socks5://127.0.0.1:1080' git config --global --unset http.proxy 'socks5://127.0.0.1:1080' ``` +## sum + +下载无非三个问题: +* 镜像源 +* 代理&VPN,以及hosts +* 包、库文件的互相对应的版本 + +### python 下载加速 + +由于部分项目需用到python,因附pip下载加速;`pip install 想要安装文件 -i 镜像源地址` 指令格式,以镜像源安装。 + +例:安装jupyter `pip install jupyter - i http://mirrors.aliyun.com/pypi/simple/` + +国内常用pip源: + +* 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ +* 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/ +* 阿里云 http://mirrors.aliyun.com/pypi/simple/ +* 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ +* 豆瓣 http://pypi.douban.com/simple/ + +设定默认值,一劳永逸 + +``` +pip install pip -U +pip config set global.index-url https://pypi.douban.com/simple/ +```