Scrapy在终端失败了

时间:2014-12-23 05:35:28

标签: python scrapy

Traceback (most recent call last):
  File "/usr/local/bin/scrapy", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2793, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 673, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 576, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Scrapy==0.24.4

我一直在苦苦挣扎几个小时,之前我遇到过不同的错误,但是我在PATH中删除了对python 2.7的所有引用,(可能是一个错误),现在我遇到了新的错误。

如何让Scrapy在我的Mac上工作,将非常感谢帮助。

1 个答案:

答案 0 :(得分:0)

此错误表示找不到您要搜索的Scrapy Distribution。尝试通过以下方式升级您的Scrapy:

easy_install --upgrade scrapy

或:

pip install --upgrade scrapy