While using python import library is very convenient, but sometimes run into many problems. Sometimes the download speed is very slow. Online concerning the python got a pip is looking into a mirror image of domestic methods.
Domestic Mirror Address:
http://pypi.douban.com/simple/ watercress
http://mirrors.aliyun.com/pypi/simple/ Ali
http://pypi.hustunique.com/simple/ Huazhong University of Science
http://pypi.sdutlinux.org/simple/ Shandong University of Technology
http://pypi.mirrors.ustc.edu.cn/simple/ University of Science and Technology of China
Tsinghua https://pypi.tuna.tsinghua.edu.cn/simple
how to use
1, temporary use, add "-i" or "--index" parameter
pip install -i http://pypi.douban.com/simple/ flask
2, formulated into default
In your "C: \ Users \ your user name \" create "pip" directory under the directory, create a "pip.ini" file in the "pip" directory (Note: in UTF-8 without BOM format encoding);
"Pip.ini" file contents:
[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
Note: trusted-host option to avoid trouble is a must, otherwise you will be prompted when using untrusted, or add "--trusted-host = mirrors.aliyun.com" option
Reference: https: //www.cnblogs.com/htx18/p/11834123.html