1 00:00:02,260 --> 00:00:09,230 Hello welcome to this tutorial on Biden's package management system. 2 00:00:10,530 --> 00:00:17,880 Before discussing about pip let us first understand what a package manager does. 3 00:00:17,910 --> 00:00:26,730 A package manager is a system level application that allows us to update the current programs and install 4 00:00:26,820 --> 00:00:36,660 new programs all in one place and package managers are used to automate the process of installing upgrading 5 00:00:37,140 --> 00:00:42,050 configuring and removing programs. 6 00:00:42,130 --> 00:00:51,430 There are many package managers available today for Unix and Unix based systems as well as windows based 7 00:00:51,430 --> 00:00:56,790 systems and these are some of the examples of package managers. 8 00:00:56,950 --> 00:01:09,100 The Debian package management system Red Hat package manager Pacman package manager nixed packages package 9 00:01:09,100 --> 00:01:19,720 managers deal with packages and what does a package a package is a collection of individual files and 10 00:01:19,780 --> 00:01:30,310 information about those files and these packages provide a certain functionality as part of a larger 11 00:01:30,310 --> 00:01:40,540 system so here you have a package manager that is available in your system and you request the package 12 00:01:40,540 --> 00:01:48,150 manager to download a package from a certain or unknown location. 13 00:01:48,310 --> 00:01:56,630 Then the package manager then finds the requested package from a known location and downloads it. 14 00:01:57,370 --> 00:02:05,590 The package manager then installs the package in your system so you tell the package manager to install 15 00:02:05,650 --> 00:02:14,110 a software package and it will automatically download the appropriate package from it on free good location 16 00:02:14,890 --> 00:02:19,100 installs it and set it up. 17 00:02:19,230 --> 00:02:31,390 So where did all these packages available the packages available online at well-defined location and 18 00:02:31,390 --> 00:02:36,100 they serve as a central distribution point for the packages. 19 00:02:37,090 --> 00:02:46,880 And these locations where these packages are available are called Software repositories. 20 00:02:46,900 --> 00:02:59,980 These software repositories are also called sources or feed and every package manager has associated 21 00:02:59,980 --> 00:03:06,340 configuration files that bind to the repository locations. 22 00:03:06,370 --> 00:03:15,700 Now coming to the Python language package managers are also used for installing and managing modules 23 00:03:15,700 --> 00:03:20,060 for languages such as Python Ruby etc.. 24 00:03:20,620 --> 00:03:29,950 B A B which is a recursive acronym for Pip installs packages is a package management system that is 25 00:03:29,950 --> 00:03:38,290 used to install and manage software packages written in Python and most distributions of Python combat 26 00:03:38,470 --> 00:03:50,620 Pip pre installed as a python 2.0 7 dot 9 and newer Pip is installed by default incase Pip is missing. 27 00:03:50,620 --> 00:03:53,850 It can be downloaded using this link. 28 00:03:54,770 --> 00:04:06,820 And after you download Pip you need to run this command in the command prompt in order to install Pip. 29 00:04:06,850 --> 00:04:16,090 One major advantage of Pip is the ease of its command line interface which makes installing Python packages 30 00:04:16,420 --> 00:04:20,060 as easy as issuing one command. 31 00:04:20,110 --> 00:04:31,120 The python package index Bye bye is a repository of software for the Python programming language and 32 00:04:31,210 --> 00:04:39,580 it is a vast repository of open source Python packages supplied by the worldwide community of Python 33 00:04:39,580 --> 00:04:40,890 developers. 34 00:04:40,960 --> 00:04:50,380 So if you want to install a common by common library you can use the package manager that is available 35 00:04:50,380 --> 00:05:01,490 with Python Pip which knows how to pull files down from the Pi Pi which is Python package index say 36 00:05:01,490 --> 00:05:08,780 for example you have developed an application in python using the code modules available in the python 37 00:05:08,780 --> 00:05:11,280 standard library. 38 00:05:11,340 --> 00:05:20,880 Now there is a requirement to enhance or extend your application for which decode modules are not sufficient 39 00:05:22,260 --> 00:05:30,270 so in addition to the standard library Python allows us to access a growing collection of thousands 40 00:05:30,390 --> 00:05:40,050 of competence including individual programs and modules to packages and tired application development 41 00:05:40,050 --> 00:05:51,450 frameworks that are available from Python package index so you can request a package using Pip by issuing 42 00:05:51,450 --> 00:06:03,120 a command pip install package name and with this command Pip will search for this package name in PI 43 00:06:03,130 --> 00:06:12,300 by the python package index and if it finds this package it downloads the package and then installs 44 00:06:12,300 --> 00:06:12,420 it. 45 00:06:13,170 --> 00:06:20,580 So one of the major advantage of Pip is the ease of its command line interface which makes installing 46 00:06:20,580 --> 00:06:27,250 Python software packages as easy as issuing just one command 47 00:06:30,610 --> 00:06:35,740 so let us now see if Pip is installed in our system or not. 48 00:06:36,220 --> 00:06:46,390 So let us go to the command prompt and then type the command with Pip and once you hit enter. 49 00:06:46,390 --> 00:06:53,480 So here this is the part where the package manager Pip is available. 50 00:06:55,380 --> 00:06:58,850 So this is the part where Pip is available. 51 00:07:00,310 --> 00:07:09,350 Now using the package manager Pip lifters now download and install package from pi pi. 52 00:07:09,970 --> 00:07:14,720 So you have pip installed in your system. 53 00:07:14,840 --> 00:07:23,760 Now let us download a package from the software repository for python that is pi pi. 54 00:07:23,760 --> 00:07:36,990 The command is pip install package name so I'm going to download the package York three key and your 55 00:07:37,020 --> 00:07:37,650 three key. 56 00:07:37,650 --> 00:07:45,180 It is a tool for obtaining information about install Python packages and creating packages available 57 00:07:45,270 --> 00:07:57,710 on Pipeline so let us download and install this package from pipeline by and then hit enter after you 58 00:07:57,710 --> 00:08:07,000 issue this command and hit enter the package manager Pip has downloaded and installed the package your 59 00:08:07,000 --> 00:08:08,350 ticket gate into the system. 60 00:08:09,760 --> 00:08:20,090 And this package your three key is used to obtain information about the installed Python packages. 61 00:08:20,290 --> 00:08:28,840 So let us use this package in order to get information about the packages that are installed in the 62 00:08:28,840 --> 00:08:29,320 system. 63 00:08:29,740 --> 00:08:42,830 So for that the commanders your hyphen in and then hit enter so these are all the different packages 64 00:08:43,160 --> 00:08:52,010 that are installed in this particular system so you can see which packages are active non-active are 65 00:08:52,220 --> 00:08:53,770 in development mode.