我按照教程here安装了scrapy,安装成功但是一旦我尝试通过它设置项目就显示了
pip install Scrapy
nikhil@nikhil:~$ 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
nikhil@nikhil:~$ pkg_resources.DistributionNotFound: attrs
pkg_resources.DistributionNotFound:: command not found
有关如何解决此错误的任何想法..?我无法通过谷歌找到任何有用的指示。
答案 0 :(得分:2)
这意味着你需要这个资源。只需安装它。
pip install attrs