gpt4 book ai didi

python - Scrapy 安装在 Ubuntu : pkg_resources. DistributionNotFound: attrs

转载 作者:行者123 更新时间:2023-12-04 19:02:17 24 4
gpt4 key购买 nike

我按照教程 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

关于如何解决这个错误的任何想法..?我无法通过谷歌找到任何有用的指针。

最佳答案

这意味着您需要此资源。只需安装它。

pip install attrs

关于python - Scrapy 安装在 Ubuntu : pkg_resources. DistributionNotFound: attrs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36261604/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com