「总结」国内镜像

pipenv 清华镜像

修改 Pipfile


[[source]]
name = "pypi"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
verify_ssl = true

pip 国内镜像

【临时】

pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simple

【永久】

# 清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

# 或:
# 阿里源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 腾讯源
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
# 豆瓣源
pip config set global.index-url http://pypi.douban.com/simple/

npm 淘宝镜像

$ npm set registry https://registry.npm.taobao.org/

通过 npm 命令指定下载源

# 在安装时候临时指定
$ npm --registry http://registry.cnpmjs.org info express

Tools      工具 镜像

本博客所有文章除特别声明外,均采用 CC BY-SA 3.0协议 。转载请注明出处!

阿里云搭建https服务 上一篇
「总结」二分查找 下一篇