是不是经常遇到过这种报错:
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
这种报错经常发生在pip install -e .的时候,然我们来看看到底什么意思吧?
pip._vendor.urllib3.exceptions.ReadTimeoutError HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Read timed out.这句话是告诉我们,发生了连接超时报错。使用HTTP协议,在连接下载files.pythonhosted.org文件时,端口443未及时响应,超过了本地主机接收响应的时间,就被判断为了超时,以报错的形式主动抛出错误并结束运行。
This error originates from a subprocess, and is likely not a problem with pip.这句话是在提醒我们,这次错误与pip本身没有关系,也就是说报错原因来自你执行的脚本或者连接下载过程
其实只要重新执行就可以了。如果还是报错,可以在下载时加上镜像来加快下载速度:
--index-url https://pypi.mirrors.ustc.edu.cn/simple
没有回复内容