从github clone demo下来无法成功运行,报错如下。试了几种办法没用,请问如何解决?
demo链接:https://github.com/rmax/scrapy-redis
PS D:\scrapy_excercise\scrapy-redis\example-project\example> scrapy crawl dmoz
Traceback (most recent call last):
File "c:\users\aus\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\aus\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\AUS\AppData\Local\Programs\Python\Python37\Scripts\scrapy.exe\__main__.py", line 7, in <module>
File "c:\users\aus\appdata\local\programs\python\python37\lib\site-packages\scrapy\cmdline.py", line 114, in execute
settings = get_project_settings()
File "c:\users\aus\appdata\local\programs\python\python37\lib\site-packages\scrapy\utils\project.py", line 69, in get_project_settings
settings.setmodule(settings_module_path, priority='project')
File "c:\users\aus\appdata\local\programs\python\python37\lib\site-packages\scrapy\settings\__init__.py", line 294, in setmodule
module = import_module(module)
File "c:\users\aus\appdata\local\programs\python\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 'example.settings'