Python for Absolute Beginners Transcripts
Chapter: Course setup and requirements
Lecture: Installing and updating Python

Login or purchase this course to watch this video and the rest of the course contents.
0:00 In this chapter, we're going to make sure that your computer is ready for you to take this course. We want to make sure that Python is set up
0:08 you have some kind of editor that works well for the kind of code that we're going to write, and so on. Let's start with Python.
0:15 You're going to need to have Python 3.6. There's many different versions of Python and each time a new one is released
0:22 they add a few features to the language. That means code that is written for the most recent version of Python will not run on the older versions.
0:31 There's certain language syntax features that the older ones say, I have no idea what this is. This doesn't work. This is not Python.
0:38 Well, maybe it wasn't Python five years ago but it is now, so you need to have a modern one that understands what's going on. And for this course
0:46 you have to have Python 3.6 or above. Higher is fine, but below that is not going to work. So you might wonder, Do I have Python?
0:54 Did my computer already come with it? Has it already been installed? Did I install it a year ago and forget about it? Well, let's find out.
1:01 On macOS or even on Linux, you can type Python3 -V, all one word Lowercase v means something entirely different. Python3 -V
1:12 and it will report out the version that it has so Python 3.7.4. This is not the latest, but it is good enough because it's past 3.6.
1:23 Over on Windows, you type Python, not necessarily Python3. There's different ways you can install Python on Windows.
1:30 Sometimes it comes with the Python3 command sometimes it doesn't. So type, Python -V like before, and it will tell you the version.
1:41 Let's just play around with that really quick over here on my computer. Now, something you're going to get familiar with
1:46 is this thing called the terminal. Now, there's a couple ways you can get to it. If you're not a developer it's probably not hanging out
1:53 down here in your dock like it is on mine and many developers'. You can hit Command + Space and type terminal, on macOS.
1:59 We're going to talk about Windows in just a minute. Or you could type this where you go applications, utilities, terminal.
2:07 But whatever, however you get to it I would pin it to your dock down here. Again, we're going to talk about Windows in just a minute.
2:14 What you see here for macOS or really anytime for macOS it's exactly the same for Linux if you happen to be on Linux.
2:20 So, we're going to see do we have Python 3. If we just type Python3 it does something that we don't want.
2:27 If we forget the three, well we get Python 2.7. This is definitely not going to run the code that we want. So, we don't want that.
2:33 We want to do Python3 -V and it records out that we have 3.7.5. It's not the latest three that's out but plenty good so we're going to roll with it
2:43 because it's 3.6 or higher that we need. You know I also wonder where is this thing installed.
2:49 Where did it come from? So you can ask which Python3, and it will show you it's installed over here. Maybe that's useful if you're trying to track down
2:57 I have multiple ones installed which one is it actually finding something like that. So this is how you check whether you have Python
3:03 on macOS and Linux. Looks like I do.

Talk Python's Mastodon Michael Kennedy's Mastodon