PIP 无法在我的 Rasberry Pi (Raspbian) 上运行,引发 ssl 错误

PIP 无法在我的 Rasberry Pi (Raspbian) 上运行,引发 ssl 错误

当我尝试在我的 Raspberry-Pi(运行 Raspbian Buster)上使用 pip 安装 python 包时,出现以下错误:

pip install opencv-python (same for every other package)

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting opencv-python

  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/opencv-python/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/opencv-python/

  ... (repeatedly same error message with total=x changing)

  Could not find a version that satisfies the requirement opencv-python (from versions: )
No matching distribution found for opencv-python

我在我的 Windows 机器上尝试了同样的命令,它按预期工作。我已经尝试添加各种受信任主机参数和其他网站上人们建议的参数,但没有任何变化。

相关内容