python - Cookiecutter:在以下位置找不到有效的X存储库:-LMLPHP

我正在使用git bash在win 10中工作,我想从cookiecutter模板创建一个抓痒的蜘蛛。我正在寻找https://cookiecutter.readthedocs.io/en/latest/overview.htmlhttps://cookiecutter.readthedocs.io/en/latest/first_steps.html作为指导。

我已经创建了一个cookiecutter-spider目录,并将spider1模板放入其中。我的cookiecutter.json文件位于教程目录中,如下所示:

{
  "project_name": "Offical Project Name™",
  "description": "A short description of the project",
  "directory_name": "tutorial",
  "file_name": "test_spider",
  "project_name": "cookiecutter-spider",
}


当我在命令行运行它时:

$ cookiecutter /e/ENVS/r2/tutorial/cookiecutter-spider
A valid repository for "e:/ENVS/r2/tutorial/cookiecutter-spider" could not be found in the following locations:
e:/ENVS/r2/tutorial/cookiecutter-spider/
e:/ENVS/r2/tutorial/cookiecutter-spider/


我该如何工作?

最佳答案

问题是需要将json文件“ cookiecutter”重命名为“ cookiecutter.json”

10-05 19:14