Reason: The request timed out, and there is a problem with the data source.
The default pip is to use the official source of Python, but because foreign official sources are often blocked and unavailable, we can use the domestic python mirror source to solve the problem that Python cannot be installed on the library.
Solution:
1. Modify the source (temporary):
You can add the -i parameter after using pip to specify the pip source.
pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install numpy -i http://pypi.douban.com/simple
If the following error is reported:
Please use the command:
pip install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install opencv-python -i https://pypi.doubanio.com/simple/ specifies the installation method of Doubanio, and the installation can run smoothly