【背景】 运行spider时报No module named ‘attrs’,但是pip install attrs又说已经满足了。 【分析】 分析是依赖版本不正确导致的。 【解决】 pip install --upgrade attrs 问题解决