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