2016-03-28 103 views
0

我按照教程安裝here scrapy,安裝是成功的,但一旦我嘗試建立一個由它的項目顯示Scrapy安裝在Ubuntu:pkg_resources.DistributionNotFound:ATTRS

pip install Scrapy 
[email protected]:~$ scrapy startproject tutorial 
Traceback (most recent call last): 
    File "/usr/local/bin/scrapy", line 5, in <module> 
    from pkg_resources import load_entry_point 
    File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2749, in <module> 
    working_set = WorkingSet._build_master() 
    File "/usr/lib/python3/dist-packages/pkg_resources.py", line 444, in _build_master 
    ws.require(__requires__) 
    File "/usr/lib/python3/dist-packages/pkg_resources.py", line 725, in require 
    needed = self.resolve(parse_requirements(requirements)) 
    File "/usr/lib/python3/dist-packages/pkg_resources.py", line 628, in resolve 
    raise DistributionNotFound(req) 
pkg_resources.DistributionNotFound: attrs 
[email protected]:~$ pkg_resources.DistributionNotFound: attrs 
pkg_resources.DistributionNotFound:: command not found 

有關如何解決任何想法這個錯誤..?我無法通過Google找到任何有用的指標。

回答

2

這意味着你需要這個資源,只需安裝它。

pip install attrs 
相關問題