1 00:00:09,540 --> 00:00:10,660 Hi again, everyone. 2 00:00:10,950 --> 00:00:15,820 In this lecture, we'll start installing Python on our Windows operating system. 3 00:00:16,110 --> 00:00:20,400 So first of all, we'll download the installation file, then we'll install the ABC. 4 00:00:21,090 --> 00:00:25,170 Then we're going to configure Python in our environment variables. 5 00:00:25,530 --> 00:00:30,150 Afterwards, we're going to install PATRÃO, which is our development environment. 6 00:00:30,150 --> 00:00:33,680 Or in other words, where are we going to write our python code later on? 7 00:00:34,140 --> 00:00:39,390 I just want to mention that almost each lecturer has an attachment PDA file that you can follow the 8 00:00:39,390 --> 00:00:40,980 steps that I'm talking about them. 9 00:00:41,190 --> 00:00:44,130 And if you get into trouble, that's a great thing to do. 10 00:00:45,030 --> 00:00:50,280 So let's elaborate of what we're going to do in this following lecture and this lecture. 11 00:00:50,290 --> 00:00:54,540 First of all, we're going to go to Python official website and download the latest version. 12 00:00:55,120 --> 00:00:59,040 We're going to install it on a reachable location such as see Python. 13 00:01:00,090 --> 00:01:04,920 And in the next phase, we're going to add Python to environment variables. 14 00:01:05,100 --> 00:01:08,120 And I just want to elaborate a little more about this section. 15 00:01:08,310 --> 00:01:11,490 Why should we do it at all if we already install Python? 16 00:01:11,520 --> 00:01:14,100 Why should we add it to environment variables? 17 00:01:14,610 --> 00:01:20,070 Because it's important for me that you would know the details behind what we do and not just to do it 18 00:01:20,070 --> 00:01:20,700 as robots. 19 00:01:20,710 --> 00:01:21,030 Right. 20 00:01:21,480 --> 00:01:28,590 So the reason we add Python to environment variables, which will explain later on the steps, is because 21 00:01:28,590 --> 00:01:35,400 after we install Python on our machine, it's still not recognized all over our operating system, meaning 22 00:01:35,550 --> 00:01:41,670 that later on when we install Pichon and we would like to write Python code, it would say, I don't 23 00:01:41,670 --> 00:01:46,170 know any python any I don't recognise Python language on your operating system. 24 00:01:46,440 --> 00:01:51,030 I don't know what Python is, even though we installed it by John doesn't recognize it. 25 00:01:51,330 --> 00:01:58,050 So in order for Python to be recognized all over the system, meaning on charm, meaning in the command 26 00:01:58,050 --> 00:02:02,770 line and all of the places that we have to adapt to environmental variables, great. 27 00:02:02,850 --> 00:02:03,630 So let's begin. 28 00:02:04,290 --> 00:02:11,550 So first thing first go to Python dot org, slash downloads and just download the latest Python version 29 00:02:11,560 --> 00:02:17,430 that you have right here and ignore if this sub version number of changes, for example, in here is 30 00:02:17,430 --> 00:02:18,950 that 85, it's OK. 31 00:02:18,970 --> 00:02:19,710 Just download it. 32 00:02:20,730 --> 00:02:24,960 And in order to save some time, I have already previously downloaded the file. 33 00:02:25,260 --> 00:02:28,530 And when you finish or download, just click on it and open it. 34 00:02:29,160 --> 00:02:30,930 You would have two options right here. 35 00:02:30,930 --> 00:02:33,840 You would have installed now and customize installation. 36 00:02:34,050 --> 00:02:35,340 Lets choose the second option. 37 00:02:36,570 --> 00:02:42,930 Next week, next, and right here at the bottom, I would like you guys to change the path and place 38 00:02:42,930 --> 00:02:45,990 it to see Biton. 39 00:02:47,360 --> 00:02:54,470 All right, and click install, I will just fast forward the installation to save some time, so Sims 40 00:02:54,470 --> 00:02:56,110 installation has been successful. 41 00:02:56,120 --> 00:03:04,280 Let's just close this window and open your Windows Explorer, then find the speci item and the right 42 00:03:04,280 --> 00:03:10,010 click on it with your mouse, then choose properties and then choose advanced system settings. 43 00:03:11,240 --> 00:03:13,940 All right, then click environment variables. 44 00:03:14,990 --> 00:03:20,270 And at this point, I just want to mention, guys, that I'm going to explain how to add Python to your 45 00:03:20,270 --> 00:03:21,290 system variables. 46 00:03:21,500 --> 00:03:27,560 And after I'll finish, I'll explain also how to do it on Windows eight and below is pretty similar 47 00:03:27,710 --> 00:03:29,340 with a small, slight change. 48 00:03:29,510 --> 00:03:34,370 It's easy peasy for those of you who have Windows eight or less, and we'll talk about it in the next 49 00:03:34,370 --> 00:03:34,910 few minutes. 50 00:03:35,060 --> 00:03:38,180 But for now, we'll explain how to do it on Windows 10. 51 00:03:38,810 --> 00:03:41,430 So environment where the screen is open. 52 00:03:41,570 --> 00:03:48,500 Just go to the bottom part, which is system variables and just find path item right here and click 53 00:03:48,500 --> 00:03:49,000 on edit. 54 00:03:50,000 --> 00:03:50,480 Great. 55 00:03:50,990 --> 00:03:54,770 Then click on you and you could see an empty item added here and there. 56 00:03:54,770 --> 00:03:59,470 Just click brose and go to your Python installation directory. 57 00:03:59,750 --> 00:04:02,090 I have installed Python into C. 58 00:04:03,700 --> 00:04:06,280 Python and then just click on Leyb. 59 00:04:07,410 --> 00:04:07,890 Great. 60 00:04:10,690 --> 00:04:12,250 And again, you rose. 61 00:04:13,540 --> 00:04:14,330 Do it again. 62 00:04:18,920 --> 00:04:19,820 Ad libs. 63 00:04:20,800 --> 00:04:21,520 OK. 64 00:04:22,710 --> 00:04:23,880 And again. 65 00:04:29,540 --> 00:04:30,460 It's scripts. 66 00:04:32,460 --> 00:04:36,210 And while this time and one rose. 67 00:04:39,100 --> 00:04:44,500 And now choose whatever folder you have inside the main directory of Python, which is called Python 68 00:04:44,530 --> 00:04:45,640 with a number. 69 00:04:45,670 --> 00:04:53,230 This number is going to change, maybe doesn't matter, just choose it and then click OK and OK. 70 00:04:53,240 --> 00:04:55,070 Once again, great. 71 00:04:55,390 --> 00:04:59,790 So now we have added Python to our system variables on Windows 10. 72 00:05:00,610 --> 00:05:05,920 So let's let's just click OK here and OK again. 73 00:05:06,520 --> 00:05:15,040 So on Windows eight, for those of you who have Windows eight or Windows seven at this, this flow is 74 00:05:15,040 --> 00:05:16,150 almost the same. 75 00:05:16,330 --> 00:05:20,290 So just go to advanced system settings, environment variables. 76 00:05:21,430 --> 00:05:26,500 Then when you find the path item right here, just click edit and once you click edit, you would not 77 00:05:26,500 --> 00:05:28,480 see the screen that you have in windows. 78 00:05:28,480 --> 00:05:30,790 Then you would see something like this. 79 00:05:31,780 --> 00:05:36,910 You would have an edit system, variable screen opened, you would see the variable name right here, 80 00:05:36,910 --> 00:05:37,540 which is bad. 81 00:05:38,740 --> 00:05:44,680 And what you need to do is at the bottom line here, which is called variable value, you would have 82 00:05:44,680 --> 00:05:52,940 to go to the last item and then place dot and a comma and then add the four items that I have just mentioned. 83 00:05:52,960 --> 00:05:53,430 All right. 84 00:05:53,680 --> 00:05:54,580 So have a look. 85 00:05:56,560 --> 00:06:04,180 You have a daughter in a coma right here dividing the items just added between each item and add the 86 00:06:04,180 --> 00:06:06,250 four items that I have just mentioned. 87 00:06:07,120 --> 00:06:07,570 Great. 88 00:06:08,080 --> 00:06:11,430 So now we have added pite onto our environment variables. 89 00:06:11,440 --> 00:06:16,080 Let us just verify that it is edited using our command line. 90 00:06:16,240 --> 00:06:23,200 So just click at the bottom left corner and start, then type in CMD and click enter. 91 00:06:24,730 --> 00:06:32,280 So let's just type in Python minus Meiners version to verify Python is recognized by our operating system. 92 00:06:34,130 --> 00:06:38,120 All right, it seems we have an error here, Python is not recognized. 93 00:06:38,720 --> 00:06:40,790 Let's go again to the PDF file. 94 00:06:41,180 --> 00:06:41,720 All right. 95 00:06:43,160 --> 00:06:45,360 So we are right here. 96 00:06:45,380 --> 00:06:46,160 Oh, I see. 97 00:06:46,550 --> 00:06:49,630 We forgot to add C Python as such. 98 00:06:49,940 --> 00:06:52,630 So let's edit right here again. 99 00:06:52,970 --> 00:06:56,810 So open your Windows Explorer again. 100 00:06:57,110 --> 00:07:00,050 A right click on this b C properties. 101 00:07:00,470 --> 00:07:04,850 Advanced System Settings, Environment Variables Barthe. 102 00:07:06,230 --> 00:07:10,370 Beth Item added and then click new. 103 00:07:11,410 --> 00:07:19,420 Brose and go to sea by dawn, just add the main directory of Python. 104 00:07:20,230 --> 00:07:23,800 This is what we forgot to add right here, the fifth item by Don. 105 00:07:25,650 --> 00:07:28,860 OK, OK, and OK again, now this should work. 106 00:07:30,350 --> 00:07:34,100 Close the command line and reopen it in order to refresh. 107 00:07:36,400 --> 00:07:40,400 Now, type in Python space minus Mayan's version. 108 00:07:41,560 --> 00:07:48,280 Yes, and you can see right here that Python version three eight five is installed and recognized by 109 00:07:48,280 --> 00:07:48,910 our machine. 110 00:07:49,900 --> 00:07:55,560 So what we were missing is the last item right here, which is C Python. 111 00:07:56,080 --> 00:08:01,280 I have added these three and this fourth item right here and forgot this one. 112 00:08:01,300 --> 00:08:05,560 So once we had the main directory to fight on, you could see it in the command line. 113 00:08:05,710 --> 00:08:09,440 And now we're done with this second section. 114 00:08:09,790 --> 00:08:10,210 Great. 115 00:08:11,440 --> 00:08:17,200 So the next step will be installing Pichon, where we write our code item is the vote by Branes, which 116 00:08:17,200 --> 00:08:24,550 is one of the most popular companies that develop IDs for all coding languages they have in development 117 00:08:24,550 --> 00:08:27,870 environment dedicated for each language, for each language. 118 00:08:27,910 --> 00:08:30,550 They have intelligence for Java, for example. 119 00:08:31,030 --> 00:08:33,530 They have by chance for Python and so on and so on. 120 00:08:33,790 --> 00:08:38,530 So just go to w w w that should bring dot com slash by chance download. 121 00:08:42,490 --> 00:08:42,770 Great. 122 00:08:43,180 --> 00:08:48,370 And right here we have to version you'd like to download the community version, just click download 123 00:08:48,370 --> 00:08:52,090 right here and save some time. 124 00:08:52,360 --> 00:08:55,680 I have already downloaded by translation installation right here. 125 00:08:55,840 --> 00:09:00,880 So once you finish downloading your picture, just double click on it. 126 00:09:02,800 --> 00:09:05,830 And let's install it as well, click next. 127 00:09:07,180 --> 00:09:13,510 I would like also to change the directory here, to be seen by charm and then click next. 128 00:09:15,140 --> 00:09:16,040 All right. 129 00:09:17,090 --> 00:09:23,270 That's next again and install, I'm going to fast forward this installation as well to save some time 130 00:09:23,270 --> 00:09:23,840 for you guys. 131 00:09:25,240 --> 00:09:26,980 The installation has been completed. 132 00:09:27,260 --> 00:09:32,050 I'll just check the check box right here, run by finish. 133 00:09:35,140 --> 00:09:39,700 All right, you have this small window in part by chance settings, just click, do not import settings 134 00:09:39,700 --> 00:09:40,570 and click, OK? 135 00:09:41,410 --> 00:09:45,850 And you have a screen of customization open for you guys. 136 00:09:46,150 --> 00:09:47,590 You can just click Skip. 137 00:09:51,750 --> 00:09:52,240 Great. 138 00:09:52,740 --> 00:10:00,030 So there you have it by charm is installed, Python is installed in our machine as well and also configured 139 00:10:00,180 --> 00:10:01,970 in environment variables. 140 00:10:02,220 --> 00:10:13,050 And once the final python in our machine, in the path item, adding this one, two, three, four and 141 00:10:13,050 --> 00:10:19,920 five items in the path, it will be recognized from our command line and also from each arm. 142 00:10:20,130 --> 00:10:21,750 And that is it. 143 00:10:21,750 --> 00:10:27,090 Guys in the next lecture will learn how to create a new PARSHURAM project and we'll go from there. 144 00:10:27,450 --> 00:10:28,830 See you in the next lecture, guys.