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”
- Preference -> Install/Update -> Change