在 Windows 上使用 cookiecutter 创建 Django 项目模板
Create Django Project template using cookiecutter on Windows
我正在尝试在 windows 中创建 cookiecutter 项目模板。按照官方网站上的说明:https://cookiecutter.readthedocs.io,我使用 pip 安装了 cookiecutter。
网站上提到的下一步是使用以下命令使用 cookiecutter 创建项目模板。
千篇一律https://github.com/audreyr/cookiecutter-pypackage.git
我也在 windows cmd 上执行了此操作,但显示错误:'cookiecutter' 未被识别为内部或外部命令。
有人可以给我建议吗?
确保:
- pip is properly installed (see also official documentation)
- 您已将
%PYTHON_HOME%
和 %PYTHON_HOME%\Scripts
添加到您的 PATH
然后,任何 pip install
程序都应该可用。
我正在尝试在 windows 中创建 cookiecutter 项目模板。按照官方网站上的说明:https://cookiecutter.readthedocs.io,我使用 pip 安装了 cookiecutter。
网站上提到的下一步是使用以下命令使用 cookiecutter 创建项目模板。
千篇一律https://github.com/audreyr/cookiecutter-pypackage.git
我也在 windows cmd 上执行了此操作,但显示错误:'cookiecutter' 未被识别为内部或外部命令。
有人可以给我建议吗?
确保:
- pip is properly installed (see also official documentation)
- 您已将
%PYTHON_HOME%
和%PYTHON_HOME%\Scripts
添加到您的 PATH
然后,任何 pip install
程序都应该可用。