Recently found particularly slow download speeds, but also unable to installation errors, try to find some domestic mirror source by installing some common python libraries found Ali goes fast, make a note here, and for everyone to share.
Domestic mirror source
Ali cloud: http: //mirrors.aliyun.com/pypi/simple/ (recommended)
Tsinghua University: https: //pypi.tuna.tsinghua.edu.cn/simple
Watercress: http: //pypi.douban.com/simple/
temporary use
When using pip plus parameters -i http://mirrors.aliyun.com/pypi/simple/
example: pip install -i http://mirrors.aliyun.com/pypi/simple/ pyspider, this will be from Ali cloud 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:
1
2
3
4
|
[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 \ XXX \ AppData \ Roaming \ pip \ pip.ini, pay particular attention to: XXX replace the name for your site.
These are the configuration process, there are problems we welcome message discussed.