gpt4 book ai didi

python - Windows 上的 OpenCV 安装失​​败

转载 作者:太空宇宙 更新时间:2023-11-03 22:16:39 26 4
gpt4 key购买 nike

您好,我正在尝试在 Windows 上安装 opencv。我正在使用 python 版本 3.7.3。我尝试了使用 pip、conda 的安装教程,并遵循了文档中概述的步骤:https://www.learnopencv.com/install-opencv-4-on-windows/ .但没有成功。无论采用哪种方法,我都会收到相同的错误。

Fetching package metadata ...
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/a
naconda/win-64/repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'tls_process_server_certificate\', \'certificate verify failed\')])")))'))

ERROR: Could not find a version that satisfies the requirements dlib(from versions:none) ERROR: No matching distribution found for dlib

关于如何解决这个问题的任何建议。

最佳答案

看起来 Conda 安装程序无法验证 SSL 证书。

作为解决方法,如果您已经安装了 Python 和 pip,则可以使用在操作系统终端中使用 pip 安装 Python 包的常用方法。

Packages for standard desktop environments (Windows, macOS, almost any GNU/Linux distribution)

  • run pip install opencv-python if you need only main modules
  • run pip install opencv-contrib-python if you need both main and contrib modules (check extra modules listing from OpenCV documentation)

关于python - Windows 上的 OpenCV 安装失​​败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57752688/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com