Mirror设置

PyPI

  • 华为云 https://mirrors.huaweicloud.com/repository/pypi/simple
  • 阿里云 https://mirrors.aliyun.com/pypi/simple/
  • 清华 https://pypi.tuna.tsinghua.edu.cn/simple

修改文件:

  • Windows: C:\Users\<user name>\AppData\Roaming\pip\pip.ini
  • Linux: ~/.pip/pip.conf | /etc/pip.conf
[global]
index-url = https://mirrors.huaweicloud.com/repository/pypi/simple
trusted-host = mirrors.huaweicloud.com
timeout = 120 

或者使用命令:(global.<value>)

$ pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
$ pip config set global.trusted-host mirrors.huaweicloud.com
$ pip config set global.timeout 120

Maven Mirrors for Eclipse

修改文件:

  • 定位配置文件:在Eclipse菜单: Windows -> Preferences -> Maven -> User Settings, 找到配置文件 (默认: ~/.m2/settings.xml)
  • 修改为:
<settings>
	<mirrors>
	   <mirror>
	       <id>huaweicloud</id>
	       <mirrorOf>central</mirrorOf>
	       <url>https://mirrors.huaweicloud.com/repository/maven/</url>
	   </mirror>
	</mirrors>
</settings>
  • Apply & Close 以使设置生效
  • 验证:
    在Eclipse菜单:WIndows -> Show View -> Other -> Maven -> Maven Repositories

GitHub

使用命令:(更改下载URL)

  • gitclone.com
    将原来github.com后续的部分附加在gitclone.com后即可。如:
$ git clone "https://github.com/xxx/yyy"
改为:
$ git clone "https://gitclone.com/github.com/xxx/yyy"

OS 下载:

Eclipse Download

http://mirrors.neusoft.edu.cn/eclipse/technology/epp/downloads/release/2020-12/

  • Accelerate market place access:
    • Preference -> Install/Update -> Change
      “download.eclipse.org” to
      “mirrors.neusoft.edu.cn”
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值