pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

问题场景:
在用pip install y:emailgetcontentdailycapacitychartpkgspypiwin32-223-py3-none-any.whl安装时出现:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

大致的意思就是请求安装源(我的源已下载到本地)超时。

解决方案:设置延长默认超时时间 pip install --default-timeout=1000 y:emailgetcontentdailycapacitychartpkgspypiwin32-223-py3-none-any.whl

总结:修改默认超时时间进行安装,缺点就是安装起来会很慢(虽然我已经把安装包下载到本地了)

原文地址:https://www.cnblogs.com/We612/p/12032298.html