在Mac OS X上安装Scrapy错误SSL点

时间:2016-11-21 21:46:52

标签: python macos scrapy pip

好,我目前正在尝试在我的MacOS中安装Scrapy,但一切都有问题,我在终端中首先介绍的是:

pip install scrapy

然后它回报我:

You are using pip version 7.0.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): scrapy in /usr/local/lib/python2.7/site-packages/Scrapy-1.2.1-py2.7.egg
Collecting Twisted>=10.0.0 (from scrapy)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/twisted/
  Could not find a version that satisfies the requirement Twisted>=10.0.0 (from scrapy) (from versions: )
No matching distribution found for Twisted>=10.0.0 (from scrapy)

看到更新的考虑,我意识到......

pip install --upgrade pip

它返回以下内容:

You are using pip version 7.0.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages/pip-7.0.1-py2.7.egg

事实是昨天我做了一千次测试并给了我另一种错误:

"SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed"

但最后一个错误不再显示我。

2 个答案:

答案 0 :(得分:0)

暂时(仅适用于此模块),您可以手动安装它。从任何地方下载它,如果它是压缩的,则提取它然后使用python setup.py install

答案 1 :(得分:0)

在MacOS上解决此问题的另一种方法是,在抓取之前安装 增量

来源: https://github.com/scrapy/scrapy/issues/2808