我試圖運行任何代碼scrapy我得到這個錯誤,不知道爲什麼導入設置
Traceback (most recent call last):
File "/usr/local/bin/scrapy", line 11, in <module>
sys.exit(execute())
File "/usr/local/lib/python2.7/dist-packages/scrapy/cmdline.py", line 108, in execute
settings = get_project_settings()
File "/usr/local/lib/python2.7/dist-packages/scrapy/utils/project.py", line 60, in get_project_settings
settings.setmodule(settings_module_path, priority='project')
File "/usr/local/lib/python2.7/dist-packages/scrapy/settings/__init__.py", line 282, in setmodule
module = import_module(module)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named settings
誰能幫我這個
├──scrapy.cfg ├──嘰嘰喳喳 │├──__init__.py │├──__init __。PYC │├──items.py │├──items.pyc │├──pipelines.py │├──settings.py │├──settings.pyc │└──蜘蛛 │├──__init__.py │├──__init __。PYC │├──twitterimpression.py │├──twitterimpression.pyc │├─ ─twitterlocation.py │├──twitterlocation.pyc │├──twitterscrape.py │└──twitterscrape.pyc └──updated_test.csv 文件即settings.py BOT_NAME ='Twitter的 內部SPIDER_MODULES = ['twitter.spiders'] NEWSPIDER_MODULE ='twitter.spiders' –
@KanakSharma,你能用這個'tree'輸出來編輯你的問題嗎?在這裏的評論,這是非常難以閱讀 –
我粘貼它,但不知道它爲什麼只用這種格式 –