使用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'
创建时文件是不存在的,报错后文件已经被创建出来,但是是不能用的,有一部分文件后缀还是tmpl