Building Data-Driven Web Apps with Flask and SQLAlchemy Transcripts
Chapter: Setup
Lecture: Do you have Python 3? How do you get it?

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


Talk Python's Mastodon Michael Kennedy's Mastodon