阿里雲 http://mirrors.aliyun.com/pypi/simple/
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/
中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple/
臨時使用三方源的方式:(命令版)
pip install <模塊名> -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
永久使用三方源的方式:(修改文件版)
Linux版本修改pip源使用國內源:
~/.pip/pip.conf(如果沒有就自行創建)
Windows版本修改pip源使用國內源:
%HOMEPATH%\pip\pip.ini
修改配置文件內容:
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com # 如果不添加這兩行,將會出現如下錯誤提示: