首页 新闻 搜索 专区 学院

使用scrapy startproject 创建文件,报错

0
悬赏园豆:100 [已关闭问题] 关闭于 2021-10-12 19:52

使用scrapy startproject 创建文件,报错

Traceback (most recent call last):
File "c:\users\smj\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\smj\appdata\local\programs\python\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\SMJ\AppData\Local\Programs\Python\Python37\Scripts\scrapy.exe_main
.py", line 7, in <module>
File "c:\users\smj\appdata\local\programs\python\python37\lib\site-packages\scrapy\cmdline.py", line 145, in execute
_run_print_help(parser, _run_command, cmd, args, opts)
File "c:\users\smj\appdata\local\programs\python\python37\lib\site-packages\scrapy\cmdline.py", line 100, in _run_print_help
func(*a, **kw)
File "c:\users\smj\appdata\local\programs\python\python37\lib\site-packages\scrapy\cmdline.py", line 153, in _run_command
cmd.run(args, opts)
File "c:\users\smj\appdata\local\programs\python\python37\lib\site-packages\scrapy\commands\startproject.py", line 115, in run
render_templatefile(tplfile, project_name=project_name, ProjectName=string_camelcase(project_name))
File "c:\users\smj\appdata\local\programs\python\python37\lib\site-packages\scrapy\utils\template.py", line 17, in render_templatefile
os.rename(path, render_path)
FileExistsError: [WinError 183] 当文件已存在时,无法创建该文件。: 'itera\itera\items.py.tmpl' -> 'itera\itera\items.py'

image-20211008074938784

创建时文件是不存在的,报错后文件已经被创建出来,但是是不能用的,有一部分文件后缀还是tmpl

image-20211008075112876

那个商同学的主页 那个商同学 | 菜鸟二级 | 园豆:202
提问于:2021-10-08 07:52
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册