2014-12-23 70 views
0
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 

我一直在掙扎了幾個小時,我收到了不同的錯誤,但我刪除了所有引用到Python在我的PATH 2.7,(可能是錯誤的),現在我得到新的錯誤。Scrapy未能在終端

如何讓Scrapy在我的Mac上工作將非常感謝您的幫助。

+0

您是如何安裝Scrapy? –

回答

0

此錯誤表示找不到您正在搜索的Scrapy分配。嘗試通過升級Scrapy:

easy_install --upgrade scrapy 

或:

pip install --upgrade scrapy