scrapy遇到的常见错误-Unknown command: crawl

时间:2021-07-01 08:08:30

1、在cmd中输入scrapy crawl mySpider 提示如下

scrapy遇到的常见错误-Unknown command: crawlD:\python_crawl\crawl_software>scrapy crawl mySpider
Scrapy 1.3.0 - no active project


Unknown command: crawl


Use "scrapy" to see available commands

原因:

没有cd到项目根目录,因为crawl会去搜搜cmd目录下的scrapy.cfg

scrapy遇到的常见错误-Unknown command: crawl

而且在官方文档中也说明了:http://scrapy-chs.readthedocs.io/zh_CN/0.24/topics/commands.html

scrapy遇到的常见错误-Unknown command: crawl