Using and Mastering Cookiecutter Transcripts
Chapter: System setup and installing Cookiecutter
Lecture: macOS Setup
0:00 Alright, let's talk about how to install the various tools,
0:03 in Python on your operating system.
0:06 So there is only two tools, two resources you need
0:08 to take this class outside the source code on the GitHub repository.
0:11 One is, you're going to need Python 3, remember,
0:14 Python 3 does not come on OS 10, Python 2.7 does,
0:19 but Python 3 does not, so you've got install that,
0:22 as well as PyCharm, so let's go look at these.
0:25 I pulled up the websites that we're going to be working with,
0:27 python.org, this is where we get Python 3,
0:30 PyCharm over here in jetbrains.com,
0:34 we're going to download PyCharm here
0:37 and I also pulled up the other three options Sublime Text if you're interested in that,
0:40 Atom, you've got to watch this video, it's very funny,
0:43 a great little lightweight editor; we'll come over here, download this, click,
0:46 just it defaults you to the latest of both
0:50 Python 2 and Python 3 for your operating system,
0:53 so pick this, download, save, I've already done that,
0:56 so let's go over here and see if I type python, you'll get something,
1:01 but you'll see that Python 2.7.10 comes up, if I type python3
1:06 there is no Python 3, so let's install Python 3
1:10 and make sure everything is set up good there.
1:14 So this is what I got off python.org, just click through,
1:18 agree to whatever its going to make you agree to,
1:22 okay so Python is installed, let's just try a little trick again,
1:27 we can even do a python3 --version on the end, excellent,
1:31 so we have Python 3 installed, and it's the latest version.
1:34 So, that is off to a good start. next, PyCharm,
1:37 when you just click download it gives us a choice
1:39 between what version do you want,
1:41 do you want the professional or the community edition, this is up to you,
1:44 I love this tool, I pay money for it, I am getting the professional,
1:48 the community is free, if you're wondering what the differences are
1:51 just come back here to the main PyCharm page
1:54 and you can see it will show you that actually the Python features themselves
1:57 there is not too much of a difference but the web development
2:00 and Python web frameworks and database stuff,
2:03 that is only in the professional edition.
2:06 But, lucky for you, none of that is actually happening in this class
2:09 so you can pick either of these that you wish.
2:11 Once you have it downloaded, you'll have a dmg disk image here,
2:15 and I love their little installer here is the app, drag it over here,
2:18 wait a moment, and you should have PyCharm installed.
2:22 Now, let's finish installing, we'll eject that and we are just going to run PyCharm.
2:26 First time it will warn you this came off the internet,
2:31 be aware, yeah, we did that on purpose.
2:33 Make sure you get it from right place.
2:36 And here is PyCharm, I've already run it before,
2:39 but the first time you run it, it asks you for the settings,
2:42 I like mine at this dark theme so everywhere it asks you about colors,
2:45 there is two places, you can say Dracula
2:47 if you want the same theme as me, or pick another one.
2:50 The other two editors are just Atom, here is Atom nice and clean,
2:53 and Sublime Text, again, super small, super clean.
2:57 Let me show you a technique that will be helpful for opening these projects
3:01 and basically work with Python projects in general.
3:04 So here I have request masters, I got this off of GitHub,
3:07 this is the requests package and this is actually the source code
3:11 so here you can see here is all the Python files, this is like the project based,
3:14 if I want to open this in PyCharm, I just drop it on here,
3:17 this is a OS 10 only feature, but if I drop it like this, it will open the whole project,
3:21 you can see here is all the code that we need.
3:25 You can do a similar thing for Sublime Text and you can do a similar thing for Atom.
3:30 So here is all the packages, same thing.
3:33 So that is a really helpful tip if you're jumping from project to project
3:36 and you want to just open up this project,
3:40 open up that after project, open up that before project, and so on,
3:43 I am sure you will find it useful throughout the class.
3:46 Alright, that's it, this OS 10 system is ready to roll, ready to work on this class.