Hello everyone.
This is Ashwin welcome to this video lecture in this video lecture.
We are going to see how to use PIB three on Raspberry Pi.
So we already know the meaning of BHP.
BHP is a package.
And the meaning of BHP is BHP installs Python RB IP installs packages.
So BHP happens to be a recursive acronym as we have already seen so in this video letter we are going
to see how to upgrade the p IP and how to use it to see the already existing packages on Raspberry Pi.
And then how to search for packages in Python package index and how to install and uninstall packages
using BHP 3.
So let us get started.
So openly twice as a search plane or any other resources Grant you are comfortable with
to the Raspberry Pi.
Gain the password
and this is going to connect to Raspberry Pi OK.
I guess the password failed.
I must tell mistyped the password.
OK so this time the connection succeeded.
And this is the command window.
Now the first task that we have is to check the origin of the PIB so we can check the original PIB using
this common P3 space hyphen capital V PIB three space hyphen capital V.
So this is going to tell us what Virgin of B IP 3 is there on this computer.
OK so it says BHP eight point zero from and the part where BHP has been installed.
Also we have the command BHP three space high five and Virgin everything is in lowercase so this might
also use the same output.
Now this was all about checking the legend of BHP.
Now we are going to see how to upgrade the existing version of BHP for that command is Python 3 space
high for them space BHP space install space hyphen iPhone upgrade space BHP.
So let us do that.
So let us copy this entire command and basted and let us PRESENTER So this is going to upgrade BHP
so I guess it has found the recent most religion of BHP
and it is downloading now.
OK
OK.
It seems that the permission to install and upgrade BHP has been denied.
So I think we have to use sudo before the command.
So I'm just going to copy this entire command of adding sudo and I'm going to enter so the command the
same.
The only thing is that we are actually executing this command with these super user permission so now
this time it should succeed without any hiccups.
OK.
It is done downloading and legacy
OK.
It seems that it has successfully installed the descent most veteran of BHP OK so this is the command
window.
Now we are just going to check the origin again
So earlier when we executed the command you know the Janet was BHP eighteen point zero
now they were gone off.
BHP is eighteen point one.
So we have the latest project of BHP.
Now we are going to see how to check existing packages and libraries on the current setup.
OK.
So we are just going to clear the screen.
Yes.
And the command for checking the existing packages is by P3 space list.
So typing P IP 3 list so this command is going to return a list of all the existing packages for Python
3.
So we have got quite a lot of packages so all these packages come by default.
Ok so if you install has.
Yes on your.
As regard so these packages have the part of it so it seems that all the useful packages for Raspberry
Pi and Python they are already there.
Also if I want to search for a package in Python package and X I can just execute this command by B3
search num by RPI P3 search and the package name.
So as of now I'm just going to use no.
For example
this command is supposed to connect to Python package index and return us list of all the packages that
how.
No.
Either in that name or in their description.
So let us crawl up and let us see what is going to happen.
You see here that it says num by one point fifteen point two is available and the installed virgin of
number is one point twelve point one.
And the latest is one point fifteen point two.
Okay.
So either you have no in the name of package or you have none by in the description.
So if you see a couple of packages that do not have numbers in the name but those packages have what
number in the description.
So this is how we can search for a package in Python package or index if you want to install any package
just type in PIB three install.
And that package name if this installation fails somehow because of the parameter an error you just
need to use sudo before continuing.
Again if you want to uninstall something you just need to type sudo uninstall and name of that package
again if that an installation process fails you just use sudo.
So this is how we can use by P3 to check what packages are there installed for Python 3 on the Raspberry
Pi.
We can also use by P3 to search for a specific package in Python package or index we can use P3 to install
as well as install a required package from the Raspberry Pi so this was all about by P3 so let us have
a small revision about P3 so we all already know that PIB is nothing but PIB installs Python or packages
it is a recursive acronym we saw how to check the Virgin of BHP three then how to upgrade BHP three
how to list how to check the list of packages how to search for a package and how to install an an installer
specific package thanks a lot for watching this video lecture and see you all in the next video lecture.