我在AWS-EC2实例上运行scrapy。但它正在抛出以下错误。
$ scrapy
Traceback (most recent call last):
File "/usr/local/bin/scrapy", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3020, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 614, in _build_master
ws.require(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 920, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 807, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Scrapy==1.3.0
我搜索并发现this link但解决方案对我不起作用。还是一样的错误。请帮忙。
答案 0 :(得分:0)
根据您提到的相同链接。
我建议您尝试使用sudo
sudo easy_install --upgrade scrapy
或:
sudo pip install --upgrade scrapy