iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > Python >解决【ERROR: Could not install packages due to an OSError: HTTPSConnectionPool...】
  • 155
分享到

解决【ERROR: Could not install packages due to an OSError: HTTPSConnectionPool...】

pythonmatplotlib开发语言 2023-09-05 15:09:14 155人浏览 薄情痞子

Python 官方文档:入门教程 => 点击学习

摘要

PIP安装软件报错 1. 问题描述2. 解决方法参考资料 1. 问题描述 PIP安装软件总是报错,报错提示如下: WARNING: Retrying (Retry(total=4, c

PIP安装软件报错

1. 问题描述

在这里插入图片描述
PIP安装软件总是报错,报错提示如下:

  1. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’: Failed to establish a new connection: [Errno 11002] getaddrinfo failed’)': /packages/59/ea/1c00d9278c51d5f03276ac3f08773a13D93cbf2d722386ae8da083866697/matplotlib-3.4.3-cp39-cp39-win_amd64.whl

  2. ERROR: Could not install packages due to an OSError: httpsConnectionPool(host=‘files.pythonhosted.org’, port=443): Max retries exceeded with url: /packages/59/ea/1c00d9278c51d5f03276ac3f08773a13d93cbf2d722386ae8da083866697/matplotlib-3.4.3-cp39-cp39-win_amd64.whl (Caused by NewConnectionError(‘: Failed to establish a new connection: [Errno 11002] getaddrinfo failed’))

2. 解决方法

安装matplotlib软件3.4.3版本: pip install matplotlib==3.4.3 -i Http://pypi.douban.com/simple --trusted-host pypi.douban.com
在这里插入图片描述

参考资料

  1. PIP安装软件报错PIP安装软件报错:“ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host=‘files.Pythonhosted.org’, port=443)”

来源地址:https://blog.csdn.net/qq_49323609/article/details/129967236

--结束END--

本文标题: 解决【ERROR: Could not install packages due to an OSError: HTTPSConnectionPool...】

本文链接: https://www.lsjlt.com/news/395566.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作