Fork me on GitHub

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

问题场景:
在用pip install y:\pkgs\pypiwin32-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:\pkgs\pypiwin32-223-py3-none-any.whl

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

posted @ 2019-12-12 23:20  路痴队长  阅读(648)  评论(0编辑  收藏  举报