How to Install PIP

PIP (Python Installs Packages) is a package management system designed to install and manage software packages written in the Python language. While most installations of Python come preinstalled, it may sometimes be necessary to manually install PIP on your machine. PIP can be installed on all major operating systems, including most varieties of Linux distributions. In this guide, we will outline how to install and test PIP on both CentOS, Ubuntu, and Windows 10 machines. If you are using Linux, you will first need to login via SSH.

Topics Include:

Install PIP on your Dedicated Server to start installing Python packages today!

Installing PIP on CentOS

To install PIP on CentOS 7, we will be making use of the YUM package manager. 

  1. Before installing PIP, you have to first add the EPEL Repo
  2. Next, you will want to update your machine:

    yum -y update

  3. Next, install PIP using the following command:

    yum -y install python-pip

  4. Now that we have PIP installed, we can use a few simple commands to test if the installation was successful:

    For a list of commands available in PIP:

    pip --help


    To check the version number of PIP:

    pip -v 

Congratulations, you have installed PIP on CentOS!

Installing PIP on Ubuntu

To install PIP on Ubuntu, we will use the apt package manager.  

  1. First, update your Ubuntu machine:

    sudo apt update

  2. Next, install PIP with the following command:

    sudo apt install python-pip

  3. To ensure that the installation was successful, run the following command:

    pip --version

Congratulations, you have installed PIP on Ubuntu! 

Installing PIP on Windows 10 

  1. First, open Command Prompt.
  2. Next, check if Python is installed on your machine with the following command:

    python

  3. Then download the PIP .py file from the Python Package Authority (PYPA):

    https://bootstrap.pypa.io/get-pip.py

  4. Install PIP using the following command:

    python get-pip.py

  5. Then, verify the installation with the following command:

    pip help


    If the installation was successful, you should see something like the following output:

    pip 18.0 from c:\users\path\to\pip

Congratulations, you have installed PIP on Windows 10!

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!