Python for Absolute Beginners Transcripts
Chapter: Course setup and requirements
Lecture: Checking for Python on Windows

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Let's see how to verify that we have Python
0:02 and the right version of Python on Windows.
0:06 We went to the terminal on Mac OS or on Linux
0:09 and over here we're going to go to the Command Prompt.
0:11 And again, if you don't have it here
0:13 you can just type startcmd and it's going to run like that.
0:17 This one has slightly different settings than that one.
0:20 That's a good question, why?
0:21 I honestly have no idea why.
0:23 So here we are, you'll see some kind of prompt
0:25 like this with your username
0:26 and you can type things like python -V.
0:30 And over here, we have a newer version
0:32 3.8, how cool is that?
0:33 We could also try a python3.
0:36 And look at this.
0:37 What the heck just happened there?
0:38 Why did we not see anything?
0:40 Well, it turns out, in the latest version
0:43 or many of the recent versions of Windows 10
0:46 they've installed these little shims that
0:49 if you try to run Python and it's not there
0:52 it will suggest that you install it
0:54 off the Windows 10 Store.
0:55 And that's a good way to get it.
0:56 You should consider that for sure.
0:57 But what's weird is, it doesn't say
0:59 you don't have Python installed
1:00 you should install it, or something when you do this.
1:03 If I just type python3
1:05 notice, it opens up the Windows Store, and that's cool
1:09 and I can just click install.
1:10 Oddly, this is 3.7 when 3.8 is out, but whatever.
1:13 3.7 is more than good enough
1:14 you can install this and that would be great.
1:16 If you type python or python3 -V, like this
1:20 and you get no output, not like this, but like this
1:24 that means is just maybe kind of going to
1:26 show you the Windows Store if you don't give it any options.
1:29 It should give you something here, even when you do this
1:31 but it doesn't.
1:32 So, it can be really tricky
1:33 like I just didn't get anything, right?
1:35 So, if you see something like this
1:37 be sure to run it like that.
1:39 Now, we have Python installed here.
1:41 And we can actually ask where on macOS, which
1:44 here we can ask where Python.
1:47 And it'll show you over in Python 3.8
1:50 this is apparently first in the path.
1:52 So that's the one that's going to run.
1:53 But we also have 3.7.
1:55 We also have the Windows app installed here.
1:57 And this is just the shim, the thing I talked about
2:00 that launches the Windows Store.
2:01 But have the same question for Python 3
2:03 you can see it's over here and this other stuff
2:05 you can ignore.
2:06 This one is some setup on but it's not first in the path
2:09 so the Windows Store one is going to run first
2:12 and then it will replace itself with real Python
2:14 if you choose to install it.
2:16 Whew, does that seem a little bit complicated?
2:18 A little bit, but it's not too bad.
2:20 The thing is, you do this once, and you get it all set up
2:22 and you're good to go.
2:23 So, just make sure that you have a command you can type
2:26 that's either Python or Python 3
2:28 and you give it the -V, you get 3.6 or above.
2:31 If you want to install the Windows Store version
2:33 that's totally fine.
2:34 If you do, the benefit is that you also have
2:36 a python3 command, unless you saw
2:38 the Windows Store version.
2:39 Windows only has python, not python3.
2:43 It just happens to be it looks through the path
2:45 and grabs the first one, which hopefully is Python 3
2:47 rather than two.
2:49 Okay, so make sure that you've got it set up
2:51 so you can run this and get something along those lines
2:53 on Windows, and then you'll be ready to take this course.