Python 无法安装任何库[SSL:TLSV1\u警报\u协议\u版本]
操作系统:Mac OS 10.12.6Python 无法安装任何库[SSL:TLSV1\u警报\u协议\u版本],python,ssl,terminal,openssl,ssl-certificate,Python,Ssl,Terminal,Openssl,Ssl Certificate,操作系统:Mac OS 10.12.6 Python:我想在3.5上安装,但可能会出现混乱,您可以在下面看到 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_
Python:我想在3.5上安装,但可能会出现混乱,您可以在下面看到
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——升级了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.
我注意到的一件事是终端正在与Python3.5“对话”(正如您在上面的错误文本中所看到的),但是如果我Python--version
它将返回Python2.7.10
于是我尝试了pip3安装scrapy
。同样的结果
我尝试了其他帖子的很多建议,但都没有效果。我快发疯了。
有人能帮忙吗?因为没人接,我只好自己去接。我找到的解决方案并不理想,但确实有效。并将其设置为我的虚拟环境。通过这种方式,我既可以使用scrapy(我正在寻找的库),也可以安装其他库。可能重复的库