镜像 | 镜像站及常用软件源配置

镜像 | 镜像站及常用软件源配置

1. 镜像站

2. 软件源配置

2.1. Python

查看当前源pip config get global.index-url

临时变更源pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple

永久变更源

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

# 百度
pip config set global.index-url https://mirror.baidu.com/pypi/simple

# 腾讯
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple

# 中国科学技术大学开源软件镜像站
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple

2.2. Go

可用站点

设置依赖源

# 七牛云
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

2.3. Node.js

# 安装镜像源管理工具
npm install -g nrm

# 指定为淘宝源
nrm use taobao

2.4. Docker

配置方法

编辑完注意重启

  • Linux:编辑/etc/docker/daemon.json,如果不存在就新建。
  • macOS:Preferences->Docker Engine

可选源

  • https://mirror.ccs.tencentyun.com
  • http://f1361db2.m.daocloud.io
  • http://hub-mirror.c.163.com
{
  "registry-mirrors": [
    "http://hub-mirror.c.163.com"
  ]
}

验证

执行:docker info

...
 Registry Mirrors:
  http://hub-mirror.c.163.com/
 Live Restore Enabled: false

2.5. Homebrew

不推荐使用镜像源,经常会出现镜像源只能加速部分内容情况。

2.6. Qt

注意macOS不是xx.app

安装器执行程序 --mirror https://mirrors.ustc.edu.cn/qtproject

3. 参考

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yimtcode

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值