解决pip.....ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read ti...

在下载python库的时候,由于国内网络原因,python包的下载速度非常慢,查看pip 文档,只要在 pip的时候控制超时即可, 具体参数为 --default-timeout=1000, 后面的时间可以自己指定。
pip install --default-timeout=1000 --no-cache-dir -r requirements.txt

你可能感兴趣的:(解决pip.....ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read ti...)