我正在学习python,并试图在这个github项目上运行代码。
https://github.com/rcfbanalysis/rcfbscraper
当我尝试运行如下命令时
python "C:\Python\rcfbscraper-master\ESPN_Scraper\ESPN_Scraper\spiders\espnSpider.py"我得到名为ESPN_Scraper.items的错误无模块。这是冒犯的界限
from ESPN_Scraper.items import GameItem发布于 2016-09-29 09:24:51
据我所知,ESPN_Scraper items.py不在您的sys路径中。解决这个问题的一个快速方法是将ESPN_Scraper目录放在与espnspider.py文件相同的目录中。
查看docs https://docs.python.org/2/tutorial/modules.html第6.1.2节
https://stackoverflow.com/questions/39759464
复制相似问题