How to Install Pip on Ubuntu 14.04 LTS
Pip is a tool for installing and managing Python packages. Python is a programming language that is quite popular and has a design philosophy that emphasizes code readability. It is widely considered to be a straightforward programming language to learn and master because of its 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.
- 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 VPS server, and I’ll be logged in as root.
Install Pip with Curl and Python
As a matter of best practice we’ll update our packages:
apt-get update
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
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 18.0 from /usr/lib/python2.7/dist-packages (python 2.7)
Alternatively, similar to:
pip 18.0 from /usr/local/lib/python2.7/dist-packages (python 2.7)
Upgrading Pip
If you already have pip installed on your Linux server, run the following command to upgrade to the newest version:
pip install --upgrade pip
Uninstalling Pip
You can remove pip easily by executing this command:
pip uninstall pip
Basic Pip Commands
Installing Libraries
Pip can install 3rd party packages like Django, Tensorflow, Numpy, Pandas and many more with the following command.
pip install
Searching for Libraries
You can also search for other libraries in Python’s repository via command line. For our example let’s look for Django packages. The search command shows us an extensive list similar to the one below.
pip search django
django-bagou (0.1.0) - Django Websocket for Django
django-maro (0.0.2) - `django-maro` is utility for django.
django-hooked (0.1.7) - WebHooks for Django and Django Rest Framework.
django-ide (0.0.5) - A Django app to develop Django apps
django-mailwhimp (0.1) - django-mailwhimp integrates mailchimp into Django
django-six (1.0.4) - Django-six —— Django Compatibility Library
django-umanage (1.1.1) - Django user management app for django
django-nadmin (0.1.0) - django nadmin support django version 1.8 based on django-xadmin
diy-django (1.3.1) - diy-django
Uninstalling a Library
If you don’t need the library and your scripts use them you can uninstall easily with this command:
pip uninstall
When a standard Cloud VPS is not enough, 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.
Related Articles:
- How to Edit the PHP Memory for Your WordPress Site via WP Toolkit
- 4 Methods for How to Install Yarn on Windows Server
- How to Install Bpytop Resource Monitoring Tool on AlmaLinux
- How to Fix “This Site Can’t Provide a Secure Connection” Error
- How to Install MongoDB on AlmaLinux
- How to Install PostgreSQL on AlmaLinux
About the Author: J. Mays
As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.
Latest Articles
How to Edit the PHP Memory for Your WordPress Site via WP Toolkit
Read ArticleWhat is CGI-Bin and What Does it Do?
Read ArticleTop 10 Password Security Standards
Read ArticleTop 10 Password Security Standards
Read ArticleHow to Use the WP Toolkit to Secure and Update WordPress
Read Article