How to install and use PIP using cmd ?

How to install and use PIP using cmd ?

Hii, Here I am going to answer the above question. For better understanding I would give visual pics.
Lets see...

Step 1: First of all open " properties " of This PC. Then in the left side you will see some options, just select "Advanced system settings".



Step 2: After clicking that you will see a System Properties Wizard and a button named " Environment Variables ....", just click it.



Step 3: Again opens a wizard named " Environment Variables". There you will see two list box. We have to edit the first one " User variables for vivek "

Step 4: Select " Path " and click on Edit Button. After clicking you would see to add new path.



Step 5: Click on New and type as written in mine.... Add both path of python.

1. " c:\Python27 "
2. " c:\Python27\Scripts "




Step 6: After doing so, click on OK. And exit from there. Now open cmd and type python. If you see the python shell opens in cmd, that means python can be accessed through cmd.




Now Install PIP

Now download this code and name the file as install-pip.py and save it on your desktop. 
                 Download install-pip.py

Step 1: After downloading from here. open cmd and type as I do ....


Step 2: Now after completing the installation, you can use pip to install modules through cmd.


Step 3: The code used for windows OS for pip is :

python -m pip install <python package name>

Step 4: Let me show how to do. So I am going to install python package " Flask ". Lets see ...




Hence, you installed pip and now you can install any package using pip easily.


Comments