Blog

How to Install Pip on CentOS 7

Pip is a tool for installing and managing Python packages. Python is a programming language that has a design philosophy that emphasizes code readability. It is widely considered to be a very easy programming language to master because of that focus on readability. Python is open source, and will run a multitude of platforms including, but not limited to: Various Linux/UNIX distributions (CentOS, Ubuntu, Fedora, Debian, etc.), Microsoft Windows, and Mac OS X.

Pre-Flight Check
  • These instructions are intended specifically for installing Pip, a tool for installing and managing Python packages.
  • I’ll be working from a Liquid Web Core Managed CentOS 7 server, and I’ll be logged in as root.
  • There are two options for installing Pip. Use either Option 1 or Option 2 below.

 

 Option 1: Install Pip with Yum 

Step 1: Add the EPEL Repository

Pip is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we’ll install the EPEL repository, for directions see How to enable EPEL repository?

Step 2: The Installation

As a matter of best practice we’ll update our packages:

yum -y update

Then let’s install python-pip and any required packages:

yum -y install python-pip

And skip to Step #3.

 Option 2: Install Pip with Curl and Python 

Note:
If you installed Pip with the previous Option, then SKIP this step.

We can also use cURL and Python to download and install Pip.

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"

python get-pip.py

 

 Step 3: Wrap Up / Verify The Installation   

View a list of helpful commands:

pip --help

Check the version of Pip that is installed:

pip -V

Which should yield something similar to:

pip 1.3.1 from /usr/lib/python2.7/site-packages (python 2.7)

 

Need more performance out of your VPS? Liquid Web’s Dedicated Servers are a dream come true. Liquid Web’s server outmatches the competition on performance and support. Check out how our Dedicated Servers can skyrocket your site’s performance today.

Related posts

Cân bằng phản ứng hóa học với EBAS

admin

Thiết bị điều khiển bằng điệu bộ

admin

“Nhíp” từ tính làm sáng tỏ tính chất cơ học của tế bào

admin

Siêu thuốc dùng để tiêu diệt gen gây bệnh

admin

Lưu trứng để sinh con sau điều trị ung thư

admin

6 bước đơn giản giúp khỏe mạnh

admin

EC công bố bản đồ tiềm năng năng lượng mặt trời

admin

Tư vấn về việc đăng ký sáng chế tại Mỹ?

admin

Chế tạo thành công động cơ nanô di chuyển nhanh nhất từ trước đến nay

admin

Leave a Comment