运行main文件时出现的错误
Traceback (most recent call last):
File "D:/lujing_request_scrapy1/guazi_scrapy_project/guazi_scrapy_project/mains.py", line 3, in <module>
cmdline.execute('scrapy crawl guazi_1'.split())
File "D:\Python37\lib\site-packages\scrapy\cmdline.py", line 112, in execute
settings = get_project_settings()
File "D:\Python37\lib\site-packages\scrapy\utils\project.py", line 69, in get_project_settings
settings.setmodule(settings_module_path, priority='project')
File "D:\Python37\lib\site-packages\scrapy\settings\__init__.py", line 287, in setmodule
module = import_module(module)
File "D:\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'guazi_scrapy_project.settings'
按照问答区的回答设置了还是不行
正在回答 回答被采纳积分+1
- 参与学习 人
- 提交作业 107 份
- 解答问题 1672 个
Python最广为人知的应用就是爬虫了,有趣且酷的爬虫技能并没有那么遥远,本阶段带你学会利用主流Scrapy框架完成爬取招聘网站和二手车网站的项目实战。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星