WEBVTT 1 00:00:04.740 --> 00:00:06.600 In this video we're gonna go ahead and 2 00:00:06.600 --> 00:00:09.120 download and install Python for a Mac. 3 00:00:09.120 --> 00:00:10.860 Now if you're running Python on a 4 00:00:10.860 --> 00:00:12.990 Windows machine or running Python on a 5 00:00:12.990 --> 00:00:15.090 Linux machine, then you want to actually 6 00:00:15.090 --> 00:00:16.860 refer to a separate video that I've got 7 00:00:16.860 --> 00:00:19.349 in this part of the course for each of 8 00:00:19.349 --> 00:00:21.689 those other platforms and the reason for 9 00:00:21.689 --> 00:00:23.279 that is that the process is a little bit 10 00:00:23.279 --> 00:00:24.660 different depending on which platform 11 00:00:24.660 --> 00:00:26.430 you're actually running it on. So in this 12 00:00:26.430 --> 00:00:28.410 case, we're going to install a Python 13 00:00:28.410 --> 00:00:31.110 on a Mac, so first things to do first 14 00:00:31.110 --> 00:00:35.520 thing to do is to go to python.org and 15 00:00:35.520 --> 00:00:36.540 we're going to download the latest 16 00:00:36.540 --> 00:00:38.640 version, so I'm going to hover over here 17 00:00:38.640 --> 00:00:40.800 to downloads noting that because I'm on 18 00:00:40.800 --> 00:00:42.780 a Mac, it's come up and showing me the 19 00:00:42.780 --> 00:00:45.030 download automatically, so the version we 20 00:00:45.030 --> 00:00:46.530 want to select is one here to the left, 21 00:00:46.530 --> 00:00:48.600 Python six three point six point 22 00:00:48.600 --> 00:00:50.820 two and that's the current version as of 23 00:00:50.820 --> 00:00:52.289 the time that I'm recording this video, 24 00:00:52.289 --> 00:00:54.390 you might find in the future it'll be a 25 00:00:54.390 --> 00:00:56.039 later version, so you just grab the 26 00:00:56.039 --> 00:00:58.079 latest one that appears and click on 27 00:00:58.079 --> 00:01:01.739 that I'm gonna save that and what I want 28 00:01:01.739 --> 00:01:02.940 to do though is just mention here that 29 00:01:02.940 --> 00:01:05.460 this Python 2.7, we definitely don't want 30 00:01:05.460 --> 00:01:07.530 that and the reason is that this course 31 00:01:07.530 --> 00:01:10.020 deals with Python 3 but the other reason 32 00:01:10.020 --> 00:01:12.119 is that Python 2 actually already exists 33 00:01:12.119 --> 00:01:13.979 on a Mac. So while that's downloading, 34 00:01:13.979 --> 00:01:15.540 well it's actually finished now, but I 35 00:01:15.540 --> 00:01:18.689 just want to briefly go into terminal so 36 00:01:18.689 --> 00:01:20.189 I'll press the command space and typed 37 00:01:20.189 --> 00:01:23.159 terminal, I'm gonna type Python so we 38 00:01:23.159 --> 00:01:24.570 haven't actually installed Python yet 39 00:01:24.570 --> 00:01:26.579 we've only downloaded it. We'll go ahead 40 00:01:26.579 --> 00:01:28.350 and type those commands and notice that 41 00:01:28.350 --> 00:01:30.329 we actually get something working, 42 00:01:30.329 --> 00:01:32.340 it's come up and said Python 2.7 43 00:01:32.340 --> 00:01:34.710 so that's installed by default on a Mac. 44 00:01:34.710 --> 00:01:36.360 So in case you're wondering how it got 45 00:01:36.360 --> 00:01:38.430 there it's when you install or whether 46 00:01:38.430 --> 00:01:39.659 your Mac is installed with the new 47 00:01:39.659 --> 00:01:41.159 version and whatever operating version 48 00:01:41.159 --> 00:01:43.020 of OS X that you're running Python 49 00:01:43.020 --> 00:01:45.780 version 2 is installed, but in our case 50 00:01:45.780 --> 00:01:47.579 we don't want to use version 2, we want 51 00:01:47.579 --> 00:01:49.950 to use version 3, so consequently I'm 52 00:01:49.950 --> 00:01:51.299 going to exit out of that prompt by 53 00:01:51.299 --> 00:01:55.799 doing a control d and the command we 54 00:01:55.799 --> 00:01:57.509 would normally type would be Python 3 55 00:01:57.509 --> 00:01:59.490 that would be how we access version 3 56 00:01:59.490 --> 00:02:01.619 and higher, but you can see that the 57 00:02:01.619 --> 00:02:03.240 moments coming up coming up and saying 58 00:02:03.240 --> 00:02:05.700 that python 3 command were not found. So what 59 00:02:05.700 --> 00:02:07.109 we now need to do is swing over and 60 00:02:07.109 --> 00:02:11.720 install python 3, so i'm going to log out 61 00:02:11.720 --> 00:02:15.510 the topping exit close down terminal and 62 00:02:15.510 --> 00:02:18.040 come over here to where it was downloaded 63 00:02:18.040 --> 00:02:19.750 to open the package that we downloaded 64 00:02:19.750 --> 00:02:22.719 python 3.6, we're going to go ahead now 65 00:02:22.719 --> 00:02:24.640 and install that, so I'm gonna click on 66 00:02:24.640 --> 00:02:27.209 continue we're going to continue again 67 00:02:27.209 --> 00:02:29.439 and one more time you can read all these 68 00:02:29.439 --> 00:02:31.599 things if you want but clicking 69 00:02:31.599 --> 00:02:33.430 through fast to get the installation 70 00:02:33.430 --> 00:02:35.500 completed, we're going to agree to the 71 00:02:35.500 --> 00:02:38.739 software license click on install, 72 00:02:38.739 --> 00:02:43.120 I'm going to type my password we'll give it 73 00:02:43.120 --> 00:02:48.230 a moment to complete. 74 00:02:48.230 --> 00:02:50.209 Okay so I can see the installations now 75 00:02:50.209 --> 00:02:51.379 been completed so I can close 76 00:02:51.379 --> 00:02:53.030 that down, I'm going to move the 77 00:02:53.030 --> 00:02:54.680 installer that we downloaded to the 78 00:02:54.680 --> 00:02:56.599 trash because we're finished with it. 79 00:02:56.599 --> 00:02:57.530 Now the last thing we need to do in this 80 00:02:57.530 --> 00:02:59.569 video now is just check that Python 3 is 81 00:02:59.569 --> 00:03:01.250 available so I'm going to hold down 82 00:03:01.250 --> 00:03:03.379 command and press space again and type 83 00:03:03.379 --> 00:03:05.030 in terminal just going to select what's 84 00:03:05.030 --> 00:03:06.080 there because that's remembered it from 85 00:03:06.080 --> 00:03:09.319 last time press enter and if recall 86 00:03:09.319 --> 00:03:11.120 last time we try this Python 3 87 00:03:11.120 --> 00:03:13.569 didn't work, but now if I type Python 3 88 00:03:13.569 --> 00:03:15.890 we can see that in fact it's now working. 89 00:03:15.890 --> 00:03:18.319 So what's happened is python 3 has been 90 00:03:18.319 --> 00:03:21.620 installed and the Mac has been updated 91 00:03:21.620 --> 00:03:23.330 with that and we can now start accessing 92 00:03:23.330 --> 00:03:24.590 that and we'll be using that server 93 00:03:24.590 --> 00:03:26.650 version of Python throughout the course, 94 00:03:26.650 --> 00:03:29.810 control d to exit in just a confirmation 95 00:03:29.810 --> 00:03:32.000 if we just type Python without the 3 on 96 00:03:32.000 --> 00:03:34.040 the end, we still get access to the old 97 00:03:34.040 --> 00:03:35.390 part of it so in effect we've got two 98 00:03:35.390 --> 00:03:37.400 versions, we haven't affected the version 99 00:03:37.400 --> 00:03:39.560 that comes with the Mac by default what 100 00:03:39.560 --> 00:03:41.030 we've done is installed an additional 101 00:03:41.030 --> 00:03:42.410 version and we'll be using that 102 00:03:42.410 --> 00:03:43.910 additional version as we go through this 103 00:03:43.910 --> 00:03:46.010 course. Alright, so we'll finish the video 104 00:03:46.010 --> 00:03:49.959 here, I'll see you in the next one.