加速github、kaggle访问、加速python packge下载更改源
OS: WIN10
加速github、kaggle访问
使用站长DNS工具(http://tool.chinaz.com/dns) 查询响应速度最快的网站服务器IP,将网站服务器IP和域名添加到电脑hosts文件(WIN10路径:C:\Windows\System32\drivers\etc\hosts)。如 github.com查询访问最快网站服务器IP为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
更多精彩