WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001B9BA068E20>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/opencv-python/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001B9BA0890A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/opencv-python/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001B9BA0892B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/opencv-python/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001B9BA0894C0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/opencv-python/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001B9BA0896D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/opencv-python/ ERROR: Could not find a version that satisfies the requirement opencv-python>=4.1.2 ERROR: No matching distribution found for opencv-python>=4.1.2
时间: 2023-07-11 20:57:02 浏览: 385
基于pip install django失败时的解决方法
这个错误提示显示你的pip尝试连接到 https://pypi.org/simple/opencv-python/ 时失败了。这可能是因为你的网络连接存在问题,或者该网站正在维护。你可以尝试以下几种解决方案:
1. 检查你的网络连接,确保你能够正常访问互联网。
2. 暂时更换 pip 源,使用其他的源来下载 opencv-python。例如,可以使用清华大学的镜像源,命令为:`pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python`
3. 等待一段时间后再尝试下载,因为有可能该网站正在维护。
4. 手动下载 opencv-python 的安装文件,然后通过本地文件安装。可以到 https://pypi.org/project/opencv-python/#files 这个网站下载对应版本的安装文件,然后通过 `pip install <本地文件路径>` 命令进行安装。
阅读全文