In this tutorial we’ll learn how to install Pip on CentOS 7. We will also install and configure its prerequisites. Pip is a package management tool for utilized to set up and manage Python packages. Python is an open-source, multi-platform and popular programming language using a design philosophy which highlights on code readability. Since it’s more focus on readability, it’s regarded as a simple programming language.
I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install Pip on CentOS 7
Step 1. First, ensure your system is fully up-to-date by running the following:
yum -y update
Step 2. Installing Pip.
Now install pip by using the following command:
yum -y install python-pip
To verify that the installation was successful you can use the following command:
The output should be similar to this one:
# pip -V pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)
Step 3. How to use Pip.
To search PyPI (Python Package Index) for specific package you can use the following command:
pip search package_name
Once you are ready to install specific package you can use the following command:
pip install package_name
List all available options you can use:
Congratulation’s! You have successfully install and configure Pip server on your CentOS 7 server. Thanks for using this tutorial Pip tool for installing and managing Python package son CentOS 7 system.