1 00:00:00,000 --> 00:00:07,000 In this session, I'll show you how we can install libraries or we collect packages using people. 2 00:00:08,000 --> 00:00:13,000 So in previous session, we have seen what is PIP, how to set a pip? 3 00:00:13,000 --> 00:00:17,000 Now I'll show you how we can install libraries using PIP. 4 00:00:18,000 --> 00:00:23,000 So whenever you want to use PIP, first of all, we need to start command prompt. 5 00:00:24,000 --> 00:00:32,000 I'm just moving to the command prompt, and here you can check if everything is set up so you can check 6 00:00:32,000 --> 00:00:34,000 by 10th hyphen. 7 00:00:35,000 --> 00:00:42,000 It will show you the Python was in Python, etc. Also, you can check like you can write PIP, and if 8 00:00:42,000 --> 00:00:45,000 you are not, getting any error means yes. 9 00:00:46,000 --> 00:00:47,000 PIP is also set up. 10 00:00:48,000 --> 00:00:49,000 So here we are, not getting any better. 11 00:00:50,000 --> 00:00:52,000 We are getting few options to be used. 12 00:00:52,000 --> 00:00:55,000 We are not getting any error means PIP is also set up. 13 00:00:56,000 --> 00:01:04,000 I just clear the screen now I'll show you how we can set up any package or we can call it library here. 14 00:01:04,000 --> 00:01:05,000 I'll take an example. 15 00:01:06,000 --> 00:01:08,000 I want to set up Selenium Library. 16 00:01:09,000 --> 00:01:15,000 So first of all, I just go to the command prompt and what is the name of the library? 17 00:01:15,000 --> 00:01:20,000 So in our case, I'm very much year for selenium library name of selenium. 18 00:01:20,000 --> 00:01:24,000 But if you're not dear, you'll have to go to Google and will have to search it. 19 00:01:24,000 --> 00:01:26,000 So I'll show you how we can do that. 20 00:01:27,000 --> 00:01:34,000 But as of now, let me come to the command prompt and I'm writing PIP Install. 21 00:01:34,000 --> 00:01:36,000 This is a command pip install. 22 00:01:36,000 --> 00:01:38,000 And what's your library name? 23 00:01:38,000 --> 00:01:41,000 So in my case, the library name is selenium. 24 00:01:41,000 --> 00:01:45,000 So when we are going to install any library, it will check. 25 00:01:45,000 --> 00:01:47,000 Do you already have this library? 26 00:01:47,000 --> 00:01:49,000 If yes, it will not install it. 27 00:01:50,000 --> 00:01:50,000 If no. 28 00:01:51,000 --> 00:01:52,000 It will download and install. 29 00:01:53,000 --> 00:01:57,000 So in our case, as of now, it will find it because I already have that. 30 00:01:57,000 --> 00:02:00,000 So it shows me the requirement already satisfied. 31 00:02:00,000 --> 00:02:04,000 But let me show you first uninstall that library and then I'll show you. 32 00:02:05,000 --> 00:02:10,000 So I'm writing like PIP, Uninstall Selenium. 33 00:02:11,000 --> 00:02:14,000 So now we've gone through two commands. 34 00:02:14,000 --> 00:02:18,000 One is PIP Install, which is going to install any library. 35 00:02:19,000 --> 00:02:23,000 PIP Uninstall, which is going to uninstall the given library. 36 00:02:23,000 --> 00:02:24,000 So we have given selenium. 37 00:02:24,000 --> 00:02:26,000 Now it is asking for would you like to uninstall it? 38 00:02:26,000 --> 00:02:27,000 Yes. 39 00:02:28,000 --> 00:02:30,000 So it uninstall it successfully. 40 00:02:31,000 --> 00:02:33,000 Now I'll just again clear. 41 00:02:33,000 --> 00:02:36,000 And now I'm going to install that library again. 42 00:02:37,000 --> 00:02:40,000 So I'm writing PIP install selenium. 43 00:02:41,000 --> 00:02:49,000 So whichever the library you want, install commands, pip install name of that library, I'm running 44 00:02:49,000 --> 00:02:49,000 it. 45 00:02:51,000 --> 00:02:55,000 So now it will download that library first and then it's going to install it. 46 00:02:57,000 --> 00:03:08,000 So two commands we have seen is PIP Install Library name, or you can click package name in the theme 47 00:03:08,000 --> 00:03:12,000 of the PIP Uninstall 48 00:03:14,000 --> 00:03:21,000 Library name one more thing I want to show you as of now when I'm installing any library, so I just 49 00:03:21,000 --> 00:03:28,000 clear like I'm reading like this, so it will check this library is there or not in your system if it 50 00:03:28,000 --> 00:03:29,000 is already there. 51 00:03:29,000 --> 00:03:36,000 It will just show you a requirement already satisfied, but it might be possible you have that library, 52 00:03:37,000 --> 00:03:39,000 but do you have any previous version of the library? 53 00:03:40,000 --> 00:03:44,000 But I want to move to the latest words and how we can do that. 54 00:03:45,000 --> 00:03:54,000 For that, you can use I'll just clear the screen pip install hyphen you and its capital. 55 00:03:54,000 --> 00:03:57,000 You hyphen your means. 56 00:03:57,000 --> 00:04:03,000 If this library is not installed in your system, then install the latest one. 57 00:04:04,000 --> 00:04:12,000 If it is already installed in your system, check if there is any order was an update to the latest 58 00:04:12,000 --> 00:04:12,000 one. 59 00:04:13,000 --> 00:04:18,000 So however, new means, if it is already did update it to the date, this wasn't, if not, install 60 00:04:18,000 --> 00:04:18,000 it. 61 00:04:19,000 --> 00:04:21,000 As of now, it's updated one. 62 00:04:21,000 --> 00:04:23,000 So it's not going to install anything. 63 00:04:23,000 --> 00:04:23,000 No. 64 00:04:25,000 --> 00:04:31,000 So here we have seen we can use pip install, and with that we can use hyphen view, which is going 65 00:04:31,000 --> 00:04:37,000 to install updated wasn't of that library last. 66 00:04:37,000 --> 00:04:42,000 I want to show you, I want to check what other libraries or packages you have installed previously 67 00:04:43,000 --> 00:04:49,000 so I can just go there and we can use PIP List. 68 00:04:50,000 --> 00:04:54,000 It will show the complete list of all libraries which you have installed. 69 00:04:54,000 --> 00:04:59,000 So in our case, it shows you have pip, you have selenium, you have your lib. 70 00:04:59,000 --> 00:05:02,000 So that is utterly new, which we have installed right now. 71 00:05:04,000 --> 00:05:16,000 So that is one more command like we can check VVIP list, it will display all available or installed 72 00:05:18,000 --> 00:05:19,000 packages. 73 00:05:21,000 --> 00:05:28,000 So here we have seen a few basic command, and also we have seen how we can set up selenium library. 74 00:05:28,000 --> 00:05:34,000 So as of now, we have installed only selenium library or we can call it package later on when we are 75 00:05:34,000 --> 00:05:40,000 working on selenium or when we are working the python, we need many other libraries, like if I take 76 00:05:40,000 --> 00:05:46,000 an example, I want to work on the excel means I want to read data from the Excel and write data to. 77 00:05:47,000 --> 00:05:52,000 So for that, we need a library with the name open by excel, so we have to install it. 78 00:05:52,000 --> 00:05:57,000 That is the basics, like how we can set up any library or package using PIP. 79 00:05:58,000 --> 00:05:59,000 That's all we have. 80 00:06:00,000 --> 00:06:01,000 Thanks for watching this video.