加速github、kaggle访问、加速python packge下载更改源

OS: WIN10

加速github、kaggle访问
使用站长工具(http://tool.chinaz.com/dns) 查询响应速度最快的DNS服务器IP,将IP和DNS添加到电脑hosts文件(WIN10路径:C:\Windows\System32\drivers\etc\hosts)。如 github.com查询访问最快DNS为192.30.255.113,则在hosts添加以下行:
192.30.255.113 github.com
Kaggle同理:
35.244.233.98 kaggle.com

python packge加速下载,更改未豆瓣源,速度起飞:、
在用户目录下新建pip/pip.ini文件,添加以下内容:

[global]
timeout = 6000
index-url = http://pypi.doubanio.com/simple
trusted-host = pypi.doubanio.com

猜你喜欢

转载自www.cnblogs.com/sumatrae/p/10518664.html