【发布时间】:2020-04-26 04:12:34
【问题描述】:
我正在尝试使用pip 安装 Python 库,出现 SSL 错误:
~/projects/base pre-master± pip install xdict
Collecting xdict
Could not fetch URL https://pypi.python.org/simple/xdict/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
Could not find a version that satisfies the requirement xdict (from versions: )
No matching distribution found for xdict
pip 版本:pip 9.0.1
如何解决这个错误?
【问题讨论】:
-
确保您拥有正确的 openssl 版本。然后用 openssl 路径重新编译 Python。
-
确保您拥有正确的 openssl 版本。
标签: python python-2.7 pip ssl-certificate