1 00:00:00,150 --> 00:00:02,930 Hello and welcome to this video. 2 00:00:02,970 --> 00:00:15,480 In this video I will show you how to install Python 3 on a Mac by default by turn coms pre installed 3 00:00:15,720 --> 00:00:17,640 with all Max button. 4 00:00:17,640 --> 00:00:25,770 The version is quite old so it comes pre installed with version two point seven. 5 00:00:25,770 --> 00:00:37,230 The current versions of python being used is byte on 3 x so or less open up our terminal to check the 6 00:00:37,230 --> 00:00:41,720 version of Python that we have installed. 7 00:00:41,760 --> 00:00:43,950 So this is my terminal. 8 00:00:44,010 --> 00:00:56,340 So you type in python you do a space dash dash version and press pointer and that gives you the current 9 00:00:56,520 --> 00:00:59,610 version installed on your Mac. 10 00:00:59,610 --> 00:01:03,120 So this is the version that comes pre installed. 11 00:01:03,180 --> 00:01:08,210 It is possible to have both Version 2 and 3 installed. 12 00:01:08,210 --> 00:01:14,960 So Version 2 and 3 can exist on the same machine. 13 00:01:15,120 --> 00:01:29,910 So let's go over to the fish or PI ton Web site and download pipe on Version 3 X X meaning the current 14 00:01:30,030 --> 00:01:40,200 version as of the time of recording this video the current version of Python if you go to downloads 15 00:01:40,490 --> 00:01:47,340 it gives you the current version so the current version is three point seven point two. 16 00:01:47,430 --> 00:01:48,590 All right. 17 00:01:48,590 --> 00:01:56,610 So to begin the download just click on the button and it will just drop the download in the download 18 00:01:56,610 --> 00:01:57,180 folder. 19 00:01:57,180 --> 00:01:58,710 We give it a few minutes to complete. 20 00:01:58,710 --> 00:02:00,340 You can see it here. 21 00:02:00,600 --> 00:02:09,960 It's downloaded so once that blue bar is completed we know that it has completed the download. 22 00:02:09,960 --> 00:02:14,850 So just give it a few minutes to complete. 23 00:02:14,850 --> 00:02:18,180 So once the download is completed you can see here. 24 00:02:18,210 --> 00:02:21,660 Gives you a little brown box on the bottom. 25 00:02:21,660 --> 00:02:29,180 Just click on the brown box and it shows you what's in there which is a P cagey file. 26 00:02:29,190 --> 00:02:30,870 So it tells you open and find out. 27 00:02:30,900 --> 00:02:34,280 So click this to open it in finder. 28 00:02:34,290 --> 00:02:39,830 Now this is what was downloaded so you just double click on it and that order. 29 00:02:40,050 --> 00:02:42,740 Launch the installer. 30 00:02:42,870 --> 00:02:50,970 So I'm just going to minimize everything else so that we can have access to the installer screen. 31 00:02:51,630 --> 00:02:57,370 So feel free to read through what's on the screen click Continue. 32 00:02:57,480 --> 00:03:00,610 You can scroll through and read through all this. 33 00:03:00,630 --> 00:03:05,130 It just gives you some important information about the version. 34 00:03:05,130 --> 00:03:07,180 Click Continue. 35 00:03:07,180 --> 00:03:11,340 You can check out the history on the license if you've got time to do that. 36 00:03:11,760 --> 00:03:20,190 Otherwise click continue and you need to agree to the license agreements before you can progress with 37 00:03:20,190 --> 00:03:31,500 the installation so click agree and click install it will prompt you for your password so enter your 38 00:03:31,500 --> 00:03:35,370 password and click install and you can see here. 39 00:03:35,370 --> 00:03:45,270 It started the installation so I'm just gonna give it a few minutes to complete the installation. 40 00:03:45,330 --> 00:03:47,340 Installation is complete too. 41 00:03:47,340 --> 00:03:54,450 These are all the stuff that it basically installed so when you install Python it also installs all 42 00:03:54,450 --> 00:04:01,830 this the idol and everything else so just going to exit the other moments just telling you what it has 43 00:04:01,830 --> 00:04:09,090 installed and then here tells you the installation was completed successfully. 44 00:04:09,090 --> 00:04:17,730 Congratulations Python three point seven point two for Mac OS ten point nine or later was successfully 45 00:04:17,730 --> 00:04:22,730 installed so feel free to close the box and tells you here. 46 00:04:22,720 --> 00:04:26,760 Do you want to move the python installer to the trash. 47 00:04:26,760 --> 00:04:32,480 Now that we've completed I will say yes move to trash because we've done the installation. 48 00:04:32,490 --> 00:04:42,420 Next thing is to open up the terminal and let's check for the version of Python but to check the version 49 00:04:42,420 --> 00:04:51,450 of Python that we have installed we need to type in Python 3 and do a space dash dash version if we 50 00:04:51,450 --> 00:04:56,310 type thing just Python it will return Python 2 which we don't want. 51 00:04:56,430 --> 00:05:05,220 It tells me I've got Python three point seven to if we were to just tie pin pipe foam and do this space 52 00:05:05,250 --> 00:05:13,330 dash dash version and press enter it gives you version 2.0 point seven two is very important. 53 00:05:13,890 --> 00:05:23,310 When you are trying to develop or create things in Python you have to use the correct version of Python 54 00:05:23,340 --> 00:05:25,380 that you are referring to. 55 00:05:25,380 --> 00:05:33,060 For example if I wanted to do something interactive and I typed in Python to give me the python shell 56 00:05:33,850 --> 00:05:35,500 and I can do a simple math. 57 00:05:35,500 --> 00:05:41,790 So those six plus six a press enter it gives me the answer of 12. 58 00:05:42,300 --> 00:05:44,230 Now if I want to exit. 59 00:05:44,310 --> 00:05:53,340 This is called the python shell for I want to exit that typing exit and parentheses press enter and 60 00:05:53,370 --> 00:05:57,950 they will exit the shell if I need to clear my screen. 61 00:05:57,960 --> 00:06:02,470 I type in clear and that clears the screen. 62 00:06:02,610 --> 00:06:08,590 Now if I want to access Python 3 shell I type in Python and then 3. 63 00:06:08,610 --> 00:06:13,300 If you notice it tells me here Python three point seven point two. 64 00:06:13,350 --> 00:06:24,010 So very important to type in the correct version of Python where you are trying to develop or experiment. 65 00:06:24,030 --> 00:06:30,110 So again we can do a simple math and do eight last seven. 66 00:06:30,150 --> 00:06:31,390 It gives you 15. 67 00:06:31,410 --> 00:06:40,820 So we just exit typing exit and then the parentheses and that to exit the python shell. 68 00:06:40,860 --> 00:06:46,880 So this concludes the installation of pilot on 3 on a Mac. 69 00:06:46,980 --> 00:06:47,930 Thanks very much. 70 00:06:47,950 --> 00:06:53,040 If you had any problems during the installation please feel free to let me know. 71 00:06:53,040 --> 00:06:55,890 I'd be more than happy to help out. 72 00:06:55,920 --> 00:06:57,230 Thanks and bye for now.