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

Cookiecutter: A valid repository for X could not be found in the following locations:

我正在使用 git bash 在 win 10 中工作,我想从 cookiecutter 模板创建一个 scrapy 蜘蛛。我正在查看 https://cookiecutter.readthedocs.io/en/latest/overview.html and https://cookiecutter.readthedocs.io/en/latest/first_steps.html 以获取指导。

我已经创建了一个cookiecutter-spider目录并将我的spider1模板放在it.My 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'