【发布时间】:2019-04-16 17:45:39
【问题描述】:
当我尝试在 Raspberry Pi 上安装 OpenCV 以进行对象检测时,出现此错误:
pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用 打开 ssl 版本 -OpenSSL 1.1.0f 2017 年 5 月 25 日(库:OpenSSL 1.1.0j 2018 年 11 月 20 日)
我使用 Python 2.7 作为全局版本并为 OpenCV 安装了所有包。
Pip 版本:pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6)
我使用pip3 install opencv-python 来安装 OpenCV。
这是错误:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting opencv-python
Could not fetch URL https://pypi.python.org/simple/opencv-python/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not fetch URL https://www.piwheels.org/simple/opencv-python/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement opencv-python (from versions: )
No matching distribution found for opencv-python
【问题讨论】:
-
没有ssl可以配置吗?
-
我该怎么做,请帮忙!