What is pip?

Pip is package manager which is used to install various python modules. Python modules, in a simple language can be thought of a bunch of code which is written by Python developers to make our work easy.

But, first of all you need to have python installed on your computer. If you haven't installed it, then first of all install python and then move on to use pip. You can download python from this link - https://www.python.org/downloads/

Steps to install python module using pip

Step 1: Open CMD (Command Prompt) and check for whether python is installed on your    computer or not. You can type the following command to check,
             py --version


After typing that command in CMD if you see your python version, like here 'Python 3.9.2' , then you are ready to use pip command, else you need to install python again.

Step 2: Suppose you want to install flask module in python, you can type the following code,
             pip install flask
     
After typing this command press enter, the flask module will be downloaded and you will see your CMD window as shown below. And, don't forget to keep your internet connected because the modules are being download from the internet.


Step 3: Check whether the module is installed properly or not, 
you can type the following code to check that,
    pip list

The above command displays the list of all the python modules which is downloaded in you computer. If you find the module which you downloaded, in that list, it implies that the module has been successfully downloaded and installed.


As you can see in this screenshot that the flask module has been successfully installed (highlighted with a red border).

I hope this post has been helpful to you and you have learnt something from this. If you have any doubts regarding this you can comment below. I will definitely try to fix your problem.