Most popular tool for installing python packages – pip

Hello Friends, today in this article we are going to discuss about pip – most popular tool for installing python packages

Background : I am writing a program to the read the excel file in Python. To read the excel file in Python program we need to use xlrd library. So to install xlrd library I am using pip command. And this article born 🙂 – share some information about pip.

What is pip?

pip is a package-management system written in Python used to install and manage python packages. pip is the most popular tool for installation python packages. Here I am using widows OS

To see the details about pip – just type pip in command prompt

pip

pip commands
fig1-pip commands

There are many commands of pip for example install, download, uninstall etc. Shown in the fig1.

How to install pip in Python?

If we have installed python version later than 3.4, pip will be already installed by default. To check the version run the following command.

pip --version

fig2- check the version of pip using pip –version

To install pip separately, follow the steps below.

  • Download 
get-pip.py

  • Run the following command
  • fig3-get-pip.py

    To upgrade the pip version, we will run the following command.

    python -m pip install --upgrade pip

    fig4-upgrade pip version

    We have successfully installed pip on your system.

    In next article we will discuss- Operators in Python

    We have very good series of python articles, kindly please have a look – https://knowledge-junction.com/category/python/

    Thank you for reading this article

    Have a nice day

    You may also like...

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    %d bloggers like this: