cookiecutter command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cookiecutter: command not found
or when using sudo you get the following error message
sudo: cookiecutter: command not found
Solutions to cookiecutter: command not found
How To Fix cookiecutter: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cookiecutter is provided by cookiecutter package.
cookiecutter is:
Cookiecutter is command-line utility that creates projects from project templates, e.g. creating a Python package project from a Python package project template.
It can also be used as a Python module. It supports local and remote templates. The templating is done with Jinja2 and there is no limitation on the language used by the templated projects (Python, Ruby, Javascript, C, HTML, Postscript…).
To fix this problem, we can install more using the command below.
sudo apt-get -y install cookiecutter
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cookiecutter.
sudo apt -y install cookiecutter
Or if you have aptitude installed you can use the following command.
sudo aptitude install cookiecutter
Summary
In this tutorial we learn how to fix cookiecutter command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.