Need up to 30 seconds to load.
hello and welcome to code basics coding
tutorial today i'm going to show you how
to install python module on windows for
this type in cmd here
and open command prompt as an
administrator this is very important so
remember to run it as administrator
the first thing i'm going to do here is
check whether the module is already
installed
the
one that i'm interested in is called
matte plot lib
and when i try to import it it is saying
module not phone so now i want to
install this
from internet
so i'm going to use this pip tool that
comes readily installed
if you have installed python 3.4 or
later version or in python 2 series if
you have installed
2.7.9 or later then pip will already be
installed if pip is not installed you
need you just google it how to install
pip and get it installed but once it is
on your system it is extremely easy to
install
python modules using this tool now the
meaning of pip is pip installs packages
so this is just the tool built to
install packages so just say pip
install matte
plot lib
and it will download the module from
internet and it will install it on your
local machine
so it just successfully installed it you
need to have an internet connection for
this so just remember that now we'll
just quickly verify
uh import mat
plot lib
excellent so now it's installed so you
can just go ahead and use it so this was
pretty easy now the way pip works is
it uses this
pypy
the python package index
and as long as your module now this
module for example matplotlib is listed
on this py py index that's that's why
i'm able to install it so this tool when
i say install it goes to this index it
will download it and it will install it
now there are
this many packages uh present on this
uh if you want to take a look at all the
pack packages you can click on this link
so i clicked on this link and it opens
this one so you see like
a whole range of packages that are
installed here
okay now if you want to uninstall it and
then it's against very easy pip on
install
matte
plot lip
it will
uninstall this it will ask for
confirmation
and now when i type in python and if i
say import matplotlib it's no longer
available okay so that was it thank you