- Python interpreter
- Adjust your path
- Packaging tools
Install Python for your operating system. Consult the official Python documentation for details.
# for python 3.x $ brew install python3
Adjust your path¶
Ensure that your
bin folder is on your path for your platform. Typically
~/.local/ for UNIX, or
%APPDATA%\Python on Windows. (See the Python documentation for site.USER_BASE for full details.)
On UNIX and macOS, for bash shells, add the following to your
.bash_profile (adjust for other shells):
# Add ~/.local/ to PATH export PATH=$HOME/.local/bin:$PATH
Remember to load changes with
source ~/.bash_profile or open a new shell session.
On Windows, ensure the
c:\Python3x directory is in your environment’s
x is the minor version of installed Python, in order to make it possible to invoke Python from a command prompt by typing
python. You will also need to add your
bin folder. To do so:
Add each directory to the end of the
Pathenvironment variable, one for your Python interpreter and another for your
See Configuring Python (on Windows) for full details.
Homebrew (Mac OS X only):
$ brew install cookiecutter
Pipsi (Linux/OSX only):
$ pipsi install cookiecutter
$ sudo apt-get install cookiecutter
Upgrading from 0.6.4 to 0.7.0 or greater¶
First, read History in detail. There are a lot of major changes. The big ones are:
- Cookiecutter no longer deletes the cloned repo after generating a project.
- Cloned repos are saved into ~/.cookiecutters/.
- You can optionally create a ~/.cookiecutterrc config file.
Upgrade Cookiecutter either with easy_install:
$ easy_install --upgrade cookiecutter
Or with pip:
$ pip install --upgrade cookiecutter
Then you should be good to go.