Encounter problems
1. Some friends reported Read time out when installing selenium with pip
HTTPSConnectionPool(host='pypi.python.org' port443)
2. It is estimated that these computers are not very serious, and there are always strange problems
time out solution
1. If the timeout is due to network speed problems, you can increase the timeout period during pip installation.
pip --default-timeout=1000 install selenium==2.53.6
2. If you find that you are still crawling like a snail after waiting for a few minutes, then set up an agent and use the following method
set proxy
1. The following methods can be used to solve the problem perfectly, the speed is not too fast! ! !
pip install --index-url https://pypi.douban.com/simple selenium==2.53.6
2. The domestic mirrors of pipy currently include:
http://pypi.douban.com/Douban _
http://pypi.hustunique.com/Huazhong University of Science and Technology
http://pypi.sdutlinux.org/Shandong University of Technology
http://pypi.mirrors.ustc.edu.cn/University of Science and Technology of China
This one for the solution reference: https://www.v2ex.com/t/327288#r_3848984
ultimate solution
1. If you feel that it is troublesome to add --index-url https://pypi.douban.com/simple to the address of each pip install, you can change the local pip configuration file
- First enter in the folder window of the window: %APPDATA%
- Then create the pip folder
- Finally, create a pip.ini file and write the following content
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
The solution is provided by the god of the north wind, this is his blog: https://www.cnblogs.com/ydf0509/p/