Using and Mastering Cookiecutter Transcripts
Chapter: System setup and installing Cookiecutter
Lecture: Installing and upgrading Cookiecutter
0:01 Now that you've verified that you have Python installed,
0:05 you can install Cookiecutter.
0:07 Now, in order to use Cookiecutter, you don't need
0:10 to know anything about Python, but it does use it
0:12 as its underlined runtime so you have to have it installed.
0:14 Alright, so to install Cookiecutter, we're going to use Python's package manager,
0:17 we're just going to say pip3 install cookiecutter
0:20 Now, this will install into Python 3, if for some reason
0:23 you want to install it to Python 2 you would say pip2 install cookiecutter
0:27 Now this will work, but this is going to modify the global system setup for Python,
0:31 and that requires admin rights and you probably don't want to do that,
0:35 so instead, we can say pip3 install --user cookiecutter
0:39 and then it just installs in your local user profile,
0:41 and you can just go to the terminal and type cookiecutter whatever and it will run,
0:46 so this is probably the recommended way to do it,
0:49 now if you're on windows, windows Python for whatever reason
0:52 doesn't have a pip2, pip3 variation,
0:56 similarly it doesn't have a Python 2 and Python 3 executable variation
1:00 like Mac OS and Linux do. I don't know why they don't,
1:04 it's really frustrating but you just have to make sure you use the right path to pip,
1:07 so it's pip install cookiecutter but pip can mean different things,
1:10 and you've got ot make sure you are pointing
1:12 at the version you want to install it into.
1:15 If you don't know, go and install it into Python 3.
1:18 Finally, if you've already installed it but you want to make sure
1:20 you have the latest version, you can give it a --upgrade flag
1:23 and this will install it if it's not there, and upgrade it if it is.
1:27 Awesome, if you run these commands, probably the last one is the best,
1:31 you will have Cookiecutter and you will be ready
1:34 to start working with it throughout this course.