Please note that this article is considered legacy documentation because Ubuntu 12.04 has reached its end-of-life support.
- 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 Ubuntu 12.04 LTS server, and I’ll be logged in as root.
Install Pip with apt-get, Step 1a: The InstallationAs a matter of best practice we’ll update our packages:
apt-get updateThen let’s install python-pip and any required packages:
apt-get -y install python-pipAnd skip to Step 2.
Install Pip with Curl and Python, Step 1b: The InstallationWe can also use curl and python to download and install Pip.
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
Step 2: Verify The InstallationView a list of helpful commands:
pip --helpCheck the version of Pip that is installed:
pip -VFor earlier versions of pip you may need to use:
pip --versionDepending on which installation method you used, the version command should yield something similar to: pip 1.0 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)