1 00:00:08,760 --> 00:00:10,110 Hi, everyone, and welcome. 2 00:00:10,890 --> 00:00:18,330 As you recall in the last lecture I have mentioned, the PIP feature in Python and we talked about the 3 00:00:18,360 --> 00:00:23,700 python consist of packages and or in or in other words, libraries. 4 00:00:23,940 --> 00:00:31,770 And in order for us to use Unicode in our code in a certain package, we need to install it first. 5 00:00:31,980 --> 00:00:34,670 And Pip is going to help us with it. 6 00:00:35,190 --> 00:00:36,510 So let's begin. 7 00:00:38,730 --> 00:00:40,380 So first of all, what is Pip? 8 00:00:40,890 --> 00:00:47,130 Pip is a de facto standard package management system use to install and manage software packages written 9 00:00:47,130 --> 00:00:47,830 in Python. 10 00:00:48,060 --> 00:00:57,200 So as I just said, it's a tool that helps us to install search updates and delete the packages. 11 00:00:57,390 --> 00:01:00,430 And this is what we're going to go over and this lecture. 12 00:01:00,750 --> 00:01:06,510 So the official package management centre of PIP is this address p p dot org. 13 00:01:06,930 --> 00:01:14,580 Let's open it and have a quick look so you can see here there are three million files here. 14 00:01:14,820 --> 00:01:23,850 And right now you can find all the packages available in Python for all relevant features, in all relevant 15 00:01:24,000 --> 00:01:26,630 packages that are published right here. 16 00:01:26,790 --> 00:01:29,400 And it's basically the centre. 17 00:01:29,400 --> 00:01:30,540 We can find everything. 18 00:01:30,570 --> 00:01:34,890 So, for example, let's search for Silentium here. 19 00:01:36,750 --> 00:01:43,470 And as you can see, how many packages relate to Solanum, you can just click on what you want. 20 00:01:44,790 --> 00:01:45,200 All right. 21 00:01:45,220 --> 00:01:46,110 This one is empty. 22 00:01:47,110 --> 00:01:48,360 Let's have another one. 23 00:01:49,650 --> 00:01:50,270 All right. 24 00:01:50,700 --> 00:01:54,710 Can see all the documentation here and how to install it. 25 00:01:54,960 --> 00:02:02,460 And by the way, you can see it the way to install it by PIP install and then minus you. 26 00:02:02,460 --> 00:02:09,420 And so then we're going to talk about the install in a minute so you can see all the documentation relevant 27 00:02:09,420 --> 00:02:13,950 to this package right here and also how to use it. 28 00:02:15,300 --> 00:02:15,810 All right. 29 00:02:18,220 --> 00:02:19,420 So let's begin. 30 00:02:19,480 --> 00:02:24,830 All right, so first thing first, let's open the command line, try to install a package. 31 00:02:24,850 --> 00:02:28,570 All right, just hit start and then ACMD. 32 00:02:31,140 --> 00:02:37,950 All right, click, uh, type in and stop and start, sorry, Bipin style. 33 00:02:41,300 --> 00:02:43,880 And then we'll and then he tenter. 34 00:02:46,380 --> 00:02:53,940 All right, so as you can see, guys, the perp has installed the wheel package on this version, zero 35 00:02:54,270 --> 00:03:01,620 three for that to on our machine and it has been successfully installed and now we can use it in our 36 00:03:01,620 --> 00:03:02,040 code. 37 00:03:02,940 --> 00:03:06,210 So let's do another thing that's open by char. 38 00:03:08,500 --> 00:03:17,970 And then go to file settings and then it's already here, but typing here, interpretor in the search 39 00:03:18,330 --> 00:03:20,550 and then choose projec interpreter. 40 00:03:22,940 --> 00:03:23,540 All right. 41 00:03:26,720 --> 00:03:32,780 As you can see here, I just wanted to verify that PatrĂ³n recognizes the installation of the package, 42 00:03:33,050 --> 00:03:34,420 so it's right here. 43 00:03:34,820 --> 00:03:35,410 All right. 44 00:03:35,690 --> 00:03:42,890 And that means basically that in our project, we can now use the relevant code from this package in 45 00:03:42,890 --> 00:03:43,750 our project. 46 00:03:44,090 --> 00:03:45,990 So you can see it right here. 47 00:03:46,010 --> 00:03:49,610 So by chance, recognize it and now we can use it in the code. 48 00:03:50,420 --> 00:03:51,340 All right, great. 49 00:03:55,770 --> 00:04:03,290 So right now, we installed the package on our machine and we have verified that by Trump sees it, 50 00:04:03,720 --> 00:04:08,490 let's see another thing, open a command line and let us type in pipe. 51 00:04:08,740 --> 00:04:14,400 Least we want to see the whole list of packages installed right here. 52 00:04:15,060 --> 00:04:18,120 And we can see Will here as well. 53 00:04:18,720 --> 00:04:22,500 When you install a new package, you always want to verify it in two places. 54 00:04:22,740 --> 00:04:24,630 First one is the command line. 55 00:04:24,870 --> 00:04:29,250 Just hit list and see the package installed right here. 56 00:04:29,430 --> 00:04:33,110 And the second place is owned by Chalmers we've seen a few seconds ago. 57 00:04:33,420 --> 00:04:34,950 So we're good. 58 00:04:35,160 --> 00:04:37,430 We can see the package here and also there. 59 00:04:39,030 --> 00:04:42,810 And let's now try to remove the package. 60 00:04:42,840 --> 00:04:43,320 All right. 61 00:04:43,620 --> 00:04:45,150 Let's try to uninstall it. 62 00:04:45,330 --> 00:04:51,630 So just go to the command line and type in PIP and install. 63 00:04:52,080 --> 00:04:54,720 We'll then hit enter. 64 00:04:56,510 --> 00:04:58,850 You see, it's asks us for a verification. 65 00:04:59,180 --> 00:05:02,030 So just put in the letter and enter. 66 00:05:02,750 --> 00:05:03,250 Great. 67 00:05:03,830 --> 00:05:08,240 So the package has been uninstalled successfully from our machine. 68 00:05:11,800 --> 00:05:20,430 All right, and the last thing is the search for a search for a certain package, so just open again 69 00:05:20,430 --> 00:05:26,530 the command line and type in BEB search selenium. 70 00:05:30,330 --> 00:05:38,850 All right, and you can see all the packages of selenium that we have just seen on the BPP Web site, 71 00:05:39,210 --> 00:05:46,380 and it's all right here, if you ask me personally, I'd rather to search for it on the Web site because 72 00:05:46,530 --> 00:05:52,740 you have explanation's there and example's, but you can find your packages through the command line 73 00:05:52,740 --> 00:05:53,250 as well. 74 00:05:54,120 --> 00:05:54,780 All right, guys. 75 00:05:54,790 --> 00:06:03,480 So, as I said, Pip is a de facto standard management package sorry, standard package management system 76 00:06:03,480 --> 00:06:08,070 used to install and manage software packages written in Python. 77 00:06:08,370 --> 00:06:15,840 In conclusion, guys, it can install, delete, update and search for the packages. 78 00:06:15,990 --> 00:06:21,210 And we're going to use it a lot during the course to install packages that we need. 79 00:06:22,830 --> 00:06:29,610 Strong, and I think that now we can we get the hang of it, and this is an amazing tool, it's very 80 00:06:29,610 --> 00:06:30,120 powerful. 81 00:06:30,750 --> 00:06:32,790 All right, guys, see you in the next lecture.