How to Install Pip on Ubuntu 14.04 LTS

Pip is a tool for installing and managing Python packages.

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

 
Install Pip with Yum, Step 1a: The Installation


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

apt-get update


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

apt-get -y install python-pip


And skip to Step 2.


Install Pip with Curl and Python, Step 1b: The Installation


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 2: 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.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)


Or similar to:

pip 6.0.8 from /usr/local/lib/python2.7/dist-packages (python 2.7)

  • 23 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

How to List Compiled PHP Modules from Command Line

Pre-Flight Check These instructions are intended specifically for listing compiled PHP modules...

How to Install or Uninstall PECL Extensions

Pre-Flight Check These instructions are intended specifically for installing or uninstalling...

How to Install the MongoDB PHP Driver (Extension) on CentOS 6

Step 1: Setup Environment, Install PHP Extension & Application Repository (PEAR) As a matter...

How to Add a User and Grant Root Privileges on CentOS 6.5

Step 1: Add the User It’s just one simple command to add a user. In this case, we’re...

How to Add a User and Grant Root Privileges on Ubuntu 14.04

Step 1: Add the User It’s just one simple command to add a user. In this case, we’re...