Using and Mastering Cookiecutter Transcripts
Chapter: System setup and installing Cookiecutter
Lecture: Windows setup
Login or
purchase this course
to watch this video and the rest of the course contents.
0:01
Hello my Windows friends, let's get you all set up and ready
0:04
to work on this class, and I have good news for you-
0:06
until very recently, using Python on Windows has been
0:09
actually fairly painful to get it set up and everything configured right,
0:12
but with Python 3.5 the installer and the set up process
0:16
is way better, so let's get to it.
0:18
To get started, you're going to need two resources on Windows,
0:21
you're going to need to install Python 3 which you can get at python.org,
0:25
and you're going to need to install PyCharm at jetbrains.com/pycharm
0:29
Let's go over to Windows 10, here is a brand new,
0:33
completely fresh install of Windows 10 I just got from Microsoft,
0:37
and I've open up the various web pages we're going to be working with;
0:40
first thing we have to do is install Python and as I told you,
0:43
there is no Python on Windows, if I open this up
0:46
and I type python there is no Python.
0:49
So we have to download Python, and we want 3.5.1
0:52
or whatever the latest version of 3 is and I've already actually downloaded it,
0:56
so I won't click here, but you just click that, that's super easy,
0:59
the other thing we need to download is PyCharm, so here is PyCharm,
1:02
it actually comes in two editions, the professional edition and the community edition,
1:07
you can pick either for this class, the community edition is totally fine,
1:10
the things you'll be missing are you'll basically be missing out
1:14
on web development and database management features from the professional edition,
1:18
and the community for straight pure Python has the same features as professional.
1:23
If for some reason you don't want to use PyCharm,
1:25
you want something more lightweight,
1:28
you can use Atom, at atom.io, atom is from GitHub, it's pretty cool,
1:30
I really like this editor, you can see there is a little video here,
1:33
I recommend you watch it, it's pretty hilarious,
1:36
Sublime Text is also a super popular lightweight editor
1:39
and I told you about Visual Studio so you can get Visual Studio community edition,
1:44
this is now a free full-fledged version of Visual Studio,
1:47
and you can get Python tools for Visual Studio,
1:50
plug this together and you're doing pretty good.
1:53
But, we're going to be using PyCharm in the class,
1:55
so that is what I will set up here. Let's start by installing Python.
1:58
So I've got it downloaded, and I'm going to run it,
2:03
now it has a couple of options in the installer,
2:06
let's say if you're going to try to just type python
2:09
from the command line or other tools like pip, for installing packages,
2:13
you probably want to add this to your path and let's customize installation
2:17
just to see what we get, we get documentation pip which manages packages,
2:20
we'll talk about that in our apps, and we have the test suite
2:23
and py launcher is really nice, and we don't need to install it for all the users.
2:28
Let's go ahead and pre compile the standard library,
2:31
that will give us a little better perf, I really don't like this big long folder here,
2:34
so this app data folder is hidden in Windows,
2:38
so it's kind of hard to discover where these are
2:40
so I am just going to put a Python folder directly in my user profile
2:43
and then in case you want to have a 64 bit or 32 bit version of Python
2:48
or maybe different types 2.7, 3.5 you probably want to leave this specifier here,
2:52
that seems like a good setup, let's go.
3:00
Alright, Python was set up successfully, let's close this
3:03
and let's just find out, if I type python --version
3:06
we should see 3.5.1 and survey says, success, okay, Python is working.
3:10
Last thing to set up is just PyCharm.
3:13
So the installer is just a standard Windows installer,
3:18
just sort of yes your way through, it's up to you
3:22
whether you associate py files with it, I typically don't do that but it's your call.
3:26
Okay, so it looks like we successfully installed PyCharm,
3:30
that was easy, let's go and run it, brand new, nothing to import,
3:34
now, normally I would log in with my JetBrains account,
3:37
but for this purpose I'll just evaluate it, say okay, that's great,
3:40
the first time you launch PyCharm it asks you what theme
3:44
and keyword scheme you want to use, because this is Windows,
3:47
I'll say Visual Studio keyboard theme and I like my code dark,
3:50
the editor is dark and the code, text to be light,
3:54
so I am going to pick the Dracula theme, you pick whichever you like.
3:57
And there you have it, PyCharm is up and ready to roll.
4:02
This brand new version of Windows 10 is ready,
4:05
so without further ado, let's move on.