【发布时间】:2018-04-18 13:06:18
【问题描述】:
操作系统:Mac OS 10.12.6
Python:我想在 3.5 上安装,但可能会出现混乱,您可以在此处看到
br>pip 版本:8.1.2
首先我尝试使用pip install scrapy 安装一个名为scrapy 的库。这发生了:
Could not fetch URL https://pypi.python.org/simple/pip/:
There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION]
tlsv1 alert protocol version (_ssl.c:646) - skipping
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
You are using pip version 8.1.2, however version 10.0.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
它建议我升级我的 pip,所以我做了pip install --upgrade pip 并感到惊讶:
Could not fetch URL https://pypi.python.org/simple/pip/:
There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION]
tlsv1 alert protocol version (_ssl.c:646) - skipping
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
You are using pip version 8.1.2, however version 10.0.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
我注意到的一件事是终端正在与 Python 3.5 “对话”(如您在上面的错误文本中所见),但是如果我 python --version 它返回 Python 2.7.10。
然后我尝试了pip3 install scrapy。结果一样。
我尝试了其他帖子的许多建议,但没有任何效果。我要疯了。 有人可以帮忙吗?
【问题讨论】:
标签: python ssl terminal openssl ssl-certificate