pip/pip3更換國内源
用途:pip更換為國内源,可以大大的提高安裝成功率和速度。
Windows更換pip/pip3源
- 打開目錄:%appdata%
- 新增pip檔案夾,建立pip.ini檔案
- 給pip.ini添加内容
[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn
這個更換的是清華的源,清華的源5分鐘同步官網一次,建議使用。
注意:不管你用的是pip3還是pip,方法都是一樣的,都是建立pip檔案夾。
國内源清單
清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/
阿裡雲 http://mirrors.aliyun.com/pypi/simple/
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple/
關注下面二維碼,訂閱更多精彩内容。

關注公衆号(加好友):
作者:
王磊的部落格
出處:
http://vipstone.cnblogs.com/