In this session, I'll show you how we can install libraries or we collect packages using people.
So in previous session, we have seen what is PIP, how to set a pip?
Now I'll show you how we can install libraries using PIP.
So whenever you want to use PIP, first of all, we need to start command prompt.
I'm just moving to the command prompt, and here you can check if everything is set up so you can check
by 10th hyphen.
It will show you the Python was in Python, etc. Also, you can check like you can write PIP, and if
you are not, getting any error means yes.
PIP is also set up.
So here we are, not getting any better.
We are getting few options to be used.
We are not getting any error means PIP is also set up.
I just clear the screen now I'll show you how we can set up any package or we can call it library here.
I'll take an example.
I want to set up Selenium Library.
So first of all, I just go to the command prompt and what is the name of the library?
So in our case, I'm very much year for selenium library name of selenium.
But if you're not dear, you'll have to go to Google and will have to search it.
So I'll show you how we can do that.
But as of now, let me come to the command prompt and I'm writing PIP Install.
This is a command pip install.
And what's your library name?
So in my case, the library name is selenium.
So when we are going to install any library, it will check.
Do you already have this library?
If yes, it will not install it.
If no.
It will download and install.
So in our case, as of now, it will find it because I already have that.
So it shows me the requirement already satisfied.
But let me show you first uninstall that library and then I'll show you.
So I'm writing like PIP, Uninstall Selenium.
So now we've gone through two commands.
One is PIP Install, which is going to install any library.
PIP Uninstall, which is going to uninstall the given library.
So we have given selenium.
Now it is asking for would you like to uninstall it?
Yes.
So it uninstall it successfully.
Now I'll just again clear.
And now I'm going to install that library again.
So I'm writing PIP install selenium.
So whichever the library you want, install commands, pip install name of that library, I'm running
it.
So now it will download that library first and then it's going to install it.
So two commands we have seen is PIP Install Library name, or you can click package name in the theme
of the PIP Uninstall
Library name one more thing I want to show you as of now when I'm installing any library, so I just
clear like I'm reading like this, so it will check this library is there or not in your system if it
is already there.
It will just show you a requirement already satisfied, but it might be possible you have that library,
but do you have any previous version of the library?
But I want to move to the latest words and how we can do that.
For that, you can use I'll just clear the screen pip install hyphen you and its capital.
You hyphen your means.
If this library is not installed in your system, then install the latest one.
If it is already installed in your system, check if there is any order was an update to the latest
one.
So however, new means, if it is already did update it to the date, this wasn't, if not, install
it.
As of now, it's updated one.
So it's not going to install anything.
No.
So here we have seen we can use pip install, and with that we can use hyphen view, which is going
to install updated wasn't of that library last.
I want to show you, I want to check what other libraries or packages you have installed previously
so I can just go there and we can use PIP List.
It will show the complete list of all libraries which you have installed.
So in our case, it shows you have pip, you have selenium, you have your lib.
So that is utterly new, which we have installed right now.
So that is one more command like we can check VVIP list, it will display all available or installed
packages.
So here we have seen a few basic command, and also we have seen how we can set up selenium library.
So as of now, we have installed only selenium library or we can call it package later on when we are
working on selenium or when we are working the python, we need many other libraries, like if I take
an example, I want to work on the excel means I want to read data from the Excel and write data to.
So for that, we need a library with the name open by excel, so we have to install it.
That is the basics, like how we can set up any library or package using PIP.
That's all we have.
Thanks for watching this video.