【发布时间】:2020-08-19 20:05:54
【问题描述】:
我在尝试安装 python 包时遇到此错误:
错误:由于环境错误,无法安装软件包: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max url 超出重试次数: /packages/f2/12/37c09c37d7ac2bdb6169d5b9409a8e64770a997412edcccc689115d63b97/catboost-0.16-cp36-none-manylinux1_x86_64.whl (由 ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): 读取超时。 (读取超时=15)",))
- 我的网络不在任何防火墙或代理服务器之后。
- 我也尝试在 pip 命令中使用 --default-timeout=1000 标志,但有时它对我有用,有时它不起作用。
【问题讨论】:
-
检查您的互联网连接??
-
我在 Azure 虚拟机中工作,因此我的本地 Internet 连接不能对这个错误负责。