Building data-driven web apps with Flask and SQLAlchemy Transcripts
Lecture: Do you have Python 3? How do you get it?
0:00 Now we're almost ready to start writing some code
0:02 and talking about this framework.
0:03 But before we do, let's just make sure
0:04 everyone's on a level playing field
0:06 there's a couple things I want to share with you
0:08 a couple things I want to give you
0:09 and I also want to make sure you have what you need
0:12 to take this course.
0:13 So the first thing I'm going to start with
0:14 is what version of Python do you need?
0:17 Well, of course, we're on modern Python
0:20 that in my mind I guess is
0:22 probably like Python 3.5 and above.
0:24 But you're actually going to need Python 3.6
0:26 'cause I believe we use some f-strings.
0:28 f-strings are a new way to format strings in Python
0:30 which are great.
0:31 Also it has async/await which came in 3.5
0:34 but I believe some of the features
0:36 that were added are also required a little bit later.
0:39 So let's just say 3.6 or later maybe even 3.7.
0:42 Newer is better.
0:44 You have to have Python installed
0:45 and it has to be Python 3.5 at an absolute minimum.
0:49 Could be higher still.
0:51 You may wonder, "Well, that's great Michael
0:53 I really want to have Python installed.
0:55 But do I on this particular machine?"
0:57 I don't know. Well, you can always ask
0:59 you can go to you're terminal in macOS
1:01 or Linux and type python3 -V
1:04 and it'll tell you one or two things.
1:06 Either the version number or you know
1:08 python3 not found. If python3 not found
1:10 that means it's either not installed
1:12 or just not in your path.
1:13 But here you can see I got Python 3.7.2
1:15 That's almost the latest
1:17 just the day I started pressing record here
1:20 3.7.3 came out pretty much same.
1:23 On Windows, python3 -V
1:26 sometimes works and you can get 3.7.2.
1:30 Depending on how you've installed Python
1:32 you might have to type just python -V
1:34 without the 3 and see what you get.
1:37 And especially on Windows
1:38 because you until recently could not target
1:40 the version by the executable name
1:43 you have to make sure your path is just right.
1:45 So you can type where Python
1:47 on Windows I think in which Python on Mac and Linux.
1:51 If that's wrong you can switch it.
1:52 It's either which or where to show you where it's come from.
1:55 And if there's more, it'll show you which is in the path
1:57 and where you know
1:58 which one comes first in the path and so on.
2:00 So if you have a new enough version of Python.
2:03 Super! Let's rock and roll.
2:05 If you don't refer you over to
2:10 these guys have a really nice set of steps on given this OS;
2:14 here's how you get Python there
2:15 here's the trade offs and so on.
2:17 And they're keeping it nice and up to date.
2:20 So instead of showing you how to install
2:22 and maybe you know, six months or some other way
2:25 like Windows 10 now just offered Python 3.7 in the store.
2:29 Which is a better way than maybe
2:30 get it on python.org for example.
2:32 So you can check out what they've got here.
2:34 This is pretty helpful.
2:35 And of course you know, get modern Python all set up
2:38 if you don't have it and let's roll.