Domestic mirror source
Tsinghua: https: //pypi.tuna.tsinghua.edu.cn/simple
Ali cloud: http: //mirrors.aliyun.com/pypi/simple/
China University of Science and Technology https://pypi.mirrors.ustc.edu.cn/simple/
Huazhong University of Science: http: //pypi.hustunique.com/
Shandong University of Technology: http: //pypi.sdutlinux.org/
Watercress: http: //pypi.douban.com/simple/
temporary use
When using the additional parameters -i https://pypi.tuna.tsinghua.edu.cn/simple pip
example: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider, this will from Tsinghua side of the mirror to install pyspider library.
Once and for all
Under Linux, modify ~ / .pip / pip.conf (not just create a folder and file folders to add. "" Indicates a hidden folder)
It reads as follows:
[global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com
Under windows, create a directory pip directly in the user directory, such as: C: \ Users \ xx \ pip, the new file pip.ini. Same as above.
Native win10 operating system directory: C: \ Users \ DELL \ AppData \ Roaming \ pip \ pip.ini
Problems encountered
When in actual use, a mirror image of Tsinghua University started, during installation, always prompt
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
After the change of Ali's mirror, the problem has been resolved.