操作系统:Mac OS 10.12.6
Python :我想在3.5上安装,但可能会有一个混乱,因为你可以在这里看到
点数版: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 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
。结果相同。
我从其他帖子尝试了很多建议,没有任何效果。我在这里疯了。 有人可以帮忙吗?
答案 0 :(得分:0)
由于没有人回答,我必须自己跟进。我找到的解决方案并不理想,但它有效。 I installed Anaconda并将其设置为我的虚拟环境。通过这种方式,我设法使用scrapy(我正在寻找的库)以及安装其他库。