Python ImportError:没有名为misc.log的模块

Python ImportError:没有名为misc.log的模块,python,python-2.7,scrapy,scrapy-spider,Python,Python 2.7,Scrapy,Scrapy Spider,我试着运行“刮屑”样本 当我尝试运行项目“alexa”时,出现错误: 我应该在哪里查找“杂项日志” from alexa.items import * from misc.log import * 也与模块alexa位于同一目录中。您可能单独下载了alexa,并试图运行它。而这个模块依赖于其他模块。因此,您可以使用gitclone从github拉取整个项目https://github.com/geekan/scrapy-examples.git然后运行示例,以便示例模块可以找到需要运行的模块

我试着运行“刮屑”样本

当我尝试运行项目“alexa”时,出现错误:

我应该在哪里查找“杂项日志”

from alexa.items import *
from misc.log import *

也与模块
alexa
位于同一目录中。您可能单独下载了alexa,并试图运行它。而这个模块依赖于其他模块。因此,您可以使用
gitclone从github拉取整个项目https://github.com/geekan/scrapy-examples.git
然后运行示例,以便示例模块可以找到需要运行的模块。

模块
杂项日志
是来自geekan存储库的日志

尝试从目录
scrapy examples
运行alexa spider,这样脚本就可以找到
misc.log
模块。当然,这是假设您已经在计算机中克隆了完整的存储库