运行爬虫时遇到的Traceback (most recent call last):求解决

求助,在运行python爬虫时出现了这么一段报错,求解决

Traceback (most recent call last):
  File "e:\program files (x86)\microsoft visual studio\shared\python36_64\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "e:\program files (x86)\microsoft visual studio\shared\python36_64\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "E:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Scripts\scrapy.exe\__main__.py", line 9, in 
  File "e:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages\scrapy\cmdline.py", line 110, in execute
    settings = get_project_settings()
  File "e:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages\scrapy\utils\project.py", line 68, in get_project_settings
    settings.setmodule(settings_module_path, priority='project')
  File "e:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages\scrapy\settings\__init__.py", line 288, in setmodule
    module = import_module(module)
  File "e:\program files (x86)\microsoft visual studio\shared\python36_64\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 941, in _find_and_load_unlocked
  File "", line 219, in _call_with_frames_removed
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'example'

然后这个是源代码

# -*-coding: utf-8 -*
import scrapy
class BooksSpider(scrapy.Spider):    
	# 每一个爬虫的唯一标识    
	name = "books"
	# 定义爬虫爬取的起始点,起始点可以是多个,这里只有一个    
    	start_urls = ['http://books.toscrape.com/']
    	def parse(self,response):        
    	# 提取数据        
    	# 每一本书的信息在

你可能感兴趣的:(运行爬虫时遇到的Traceback (most recent call last):求解决)