WEBVTT 00:00.480 --> 00:01.700 Hey guys welcome back. 00:01.740 --> 00:07.770 In this lecture we'll be talking about a special tool called Pip Pip is actually the backbone of Python 00:08.040 --> 00:14.610 for managing all the packages in our system so PIP is a package management system used to install and 00:14.610 --> 00:21.090 manage software packages within the python so there are different packages libraries modules that are 00:21.090 --> 00:27.540 available online with the help of Pip that is this package manager we can download these tons of module 00:27.750 --> 00:35.070 tons of packages available online in just a single line of come on set a special command line tool for 00:35.070 --> 00:42.090 installing and managing Python packages which are generally found on the spatial index which we call 00:42.090 --> 00:43.950 us by 10 package index. 00:44.580 --> 00:49.590 So if you want to search about any package if you want to check any package we have a python package 00:49.620 --> 00:54.480 index that does it contain all the commands all the details of each and every package. 00:54.870 --> 01:01.920 So if you want to check you can visit by by a dot or G and how you can see and currently we have all 01:01.920 --> 01:07.380 160 thousand packages and there are tons of packages that are releasing every day. 01:07.890 --> 01:13.560 So if we want to search any package you can directly come on Python package index and you will get all 01:13.560 --> 01:15.390 the list of packages here. 01:15.390 --> 01:21.180 You will also see new projects new release different type of packages that are coming up with Python 01:21.810 --> 01:24.930 and head are some trending projects that people are using right now. 01:25.530 --> 01:30.810 So you can see these are the packages some can be of implementation of the monarchy. 01:31.260 --> 01:33.750 So these package contain slaughter file. 01:33.750 --> 01:38.490 This package contains functionality to do a certain task. 01:38.490 --> 01:44.730 If I open this one for a while you will get a description release history and all other things. 01:44.810 --> 01:49.780 Even the github statistics and you can see it was released just seven minutes ago. 01:49.820 --> 01:56.410 So here I'm taking an example only now let us go back to our command line since PIP is a command line 01:56.410 --> 02:00.130 tool so people automatically installed in your system. 02:00.130 --> 02:06.760 Remember while installing our python you had the option of Pip to be included with our download. 02:06.790 --> 02:12.730 So yes Pip is already installed in your system to check and confirm all you have to do is give a command. 02:12.850 --> 02:19.660 PIP Dash Dash was volume and how you will get a confirmation of Pip budget and also it will tell the 02:19.690 --> 02:25.710 supported bite on margin with just three point seven and current Pip wilderness ten point 0.01. 02:25.720 --> 02:32.940 The next thing is if you want any help regarding Pip all you have to do is use Pip dash dash and then. 02:33.310 --> 02:35.830 Now here you will get two types of results. 02:35.830 --> 02:39.880 The first one will be commands and the second one will be general options. 02:39.940 --> 02:42.470 So these are the commands which we'll be using. 02:42.700 --> 02:49.180 So come on stream and start any package come on one start any package to get our list off package to 02:49.170 --> 02:54.670 show information about packages to search packages to get help about packages. 02:54.670 --> 02:56.470 So these are some important come on. 02:56.860 --> 03:02.360 And if you scroll down you will get some general options which you can use with Pip. 03:02.440 --> 03:07.600 I hope this some interesting because now we are playing with third party packages that is now we are 03:07.600 --> 03:13.840 going to use codes of different persons that they have put online and we are going to use their features 03:13.840 --> 03:15.670 to run our Come on. 03:15.670 --> 03:19.710 By now we know that there is something like packages that are available online. 03:19.720 --> 03:26.260 We know that there is something come online bool which you call us Pip but holding strong on a package. 03:26.260 --> 03:30.340 Before that I just want to show you a simple example with my program. 03:30.670 --> 03:37.420 So here is a basic program in which I am trying to impose CV 2 Don't look at the code right now and 03:37.420 --> 03:39.740 just focus on import CV too. 03:39.780 --> 03:44.070 So I am trying to embody the module which belongs to us so then package. 03:44.260 --> 03:51.570 I haven't installed that package currently but what will happen if I tried to run this program. 03:51.730 --> 03:55.270 You see I got an error that there is no module name CV 2. 03:55.440 --> 03:59.940 That means currently I don't have any package on module related to CV too. 04:00.000 --> 04:03.000 So that's where we need to install a third party package. 04:03.300 --> 04:06.660 So for the example I will be installing open TV buy time. 04:07.050 --> 04:13.500 We'll be talking about open TV in the next lecture to open TV is basically a liability used for image 04:13.500 --> 04:16.460 processing and all the work that we do with image. 04:16.500 --> 04:19.090 We'll be talking about that in next lecture here. 04:19.130 --> 04:20.490 Just focus on that. 04:20.490 --> 04:25.530 There is a module called CV 2 which currently is not present in my system. 04:25.620 --> 04:31.830 So how I'm going to install that and also you can try to import things in your python command line just 04:31.830 --> 04:38.060 going bird python shell and let me import my CV to inside my Python chain. 04:38.270 --> 04:39.720 I still got the same error. 04:40.480 --> 04:45.450 Let me exhibit this one and clear out my come on line now being installed. 04:45.460 --> 04:46.380 Any package. 04:46.420 --> 04:51.580 All we have to do is use Pip then install and then get the package name. 04:51.580 --> 04:57.760 So you should know the package name that you are installing once that is done it will download all the 04:57.760 --> 05:04.240 files it will download all the media material or everything that is related to that Motorola package. 05:04.240 --> 05:10.750 And if you don't know anything about the package you can use Pip search and then search about that package. 05:10.750 --> 05:19.330 Here let me search about open TV and how you will get tons of results related to open TV so you'll have 05:19.330 --> 05:23.170 to search about package that is related to you and you want to install it. 05:23.500 --> 05:29.770 So this was my package open CV dash fight on and now I'm also getting indication that I have already 05:29.820 --> 05:35.950 installed but you have to see that there are tons of open TV packages so you have to search about whatever 05:35.980 --> 05:38.830 the task you require with that package. 05:38.830 --> 05:44.170 One other thing is you can also search about packages in your python package index. 05:44.170 --> 05:47.970 That would be much easier for you with the help of browser. 05:47.980 --> 05:49.620 Now we have installed a package. 05:49.660 --> 05:51.920 We have also searchable to our package. 05:51.940 --> 05:55.480 The next thing is how to verify that we have installed this package. 05:55.510 --> 05:58.600 So for that all you have to do is use Pip Sure. 05:58.630 --> 06:04.210 And then the package name to get the confirmation that you have installed despite the killer package. 06:04.540 --> 06:08.130 And here you can see I got all the information regarding this package. 06:08.230 --> 06:11.780 It was on its summary and also the github profile. 06:12.280 --> 06:17.540 You will also get information about its license and other package that it requires. 06:17.890 --> 06:23.920 So it currently required none that I have already installed and how to get a second confirmation about 06:23.920 --> 06:25.020 my open CV. 06:25.090 --> 06:27.300 I can try to run my command now. 06:27.320 --> 06:35.500 The second thing I can do is I can just go into my byte on channel and try to import my CV to now you 06:35.500 --> 06:40.480 can see I haven't got any error and you can see I got my interpreter sign. 06:40.480 --> 06:42.760 That means everything is working fine. 06:42.760 --> 06:45.150 And also let me try to run my example file. 06:45.220 --> 06:48.090 That is my some first organization example file. 06:48.220 --> 06:49.620 Let me run this one also. 06:52.230 --> 06:57.910 You can see I got my basic result regarding face recognition and that's how we work with it. 06:58.260 --> 07:01.050 And also my different modules and packages. 07:01.050 --> 07:06.630 So the basic thing that you should do is you can also check what other different type of packages that 07:06.630 --> 07:07.840 you have already installed. 07:07.890 --> 07:15.960 For that all you have to use is Pip and then list here you will get all the basic information regarding 07:15.960 --> 07:18.410 what type of packages that you have ordered install. 07:18.810 --> 07:25.230 And you can see I have opened CV in my list and also the name by what if I need to uninstall any package. 07:25.590 --> 07:26.820 Yeah we can do that. 07:26.970 --> 07:34.910 All you have to use is Pip uninstall and then the package name and it will ask for a second confirmation. 07:34.910 --> 07:36.280 Just get the confirmation. 07:36.320 --> 07:42.650 And that's done so now are open CV it on package is uninstall how to get to confirmation. 07:42.650 --> 07:47.490 Just check out the list here you can see in our open CV package is missing. 07:47.510 --> 07:52.610 The second thing you can do is you can also try to import that new financial shell or try to run the 07:52.610 --> 07:53.330 basic command. 07:53.690 --> 08:02.120 Let me try to import that into my byte on Shell all I have to do is use my import and then TV to and 08:02.160 --> 08:07.320 hey you can see I'm just getting it again since I have uninstalled my open sea module. 08:07.830 --> 08:09.490 So that's how we work with that. 08:09.570 --> 08:15.530 It's a strong game online tool and it is really really important because now you are going to install 08:15.540 --> 08:21.810 different third party packages for each and every project you might need some third party packages with 08:22.060 --> 08:27.420 the look menu you might need tangle you might need floors you might need to work with the rest api with 08:27.420 --> 08:29.680 Jason you might need some EPA is. 08:29.760 --> 08:32.910 So you have to import different type of packages. 08:32.910 --> 08:39.000 Now the last important thing that I want to talk about before ending this lecture Python is a strong 08:39.000 --> 08:45.690 language because of its community and the developing the community is doing so they are doing development 08:45.690 --> 08:52.860 with the help of developing ecosystem developing packages developing module and these modules are available 08:52.860 --> 08:55.230 for free to install and work on it. 08:56.010 --> 09:01.740 I hope this lecture was helpful in the next lecture let us talk about something related open CV some 09:01.740 --> 09:06.470 different packages or maybe trialled some example with face recognition. 09:06.840 --> 09:08.190 So that's all for this lecture. 09:08.190 --> 09:09.450 See you in the next on.