How ToUbuntu

How to Install pip on Ubuntu in Easy Ways

Install pip to manage Python applications on Ubuntu with ease.

Ubuntu is one of the user-friendly Linux distribution and it is the best for beginner users. The installation and setup process is pretty easy. In Ubuntu, you can install files manually just with a single line of code. To install pip on Ubuntu, only a single command is needed. If you want to install pip on Ubuntu and don’t know the command, this article will help you.

What is pip?

pip on Ubuntu

Most of the programming languages like Java uses software packages as the tool to run and execute the code. Like that, Python uses pip to run and execute codes. Without pip, you can’t work with Python codes. pip stands for Package Installer for Python. It is used to install and run packages from the Python Package Index. It is command-line based package management application, mostly used to manage software written in Python language.

Techowns Tip: How to install Python on Linux?

How to install pip on Python using the Terminal Window?

Ubuntu has a pre-installed version of Python 2 and Python 3. If you want to work in Python language, you need to install the pip for Python 2 and Python 3 manually. pip is individually available for Python 2 and Python 3. Depending upon your usage, you need to install the pip.

Usually, pip is used for Python 2 version and pip for Python 3 is used for Python 3 version. Make sure that you are using the Terminal windows with admin privileges.

(1) Open the Terminal window and execute the below command to update the packages.

sudo apt update

(2) Now, install the pip for Python.

sudo apt install python-pip

(3) If you want to install pip for Python 3, execute the below command.

sudo apt install python3-pip

(4) After that, check the installation if it is installed correctly.

pip --version


pip3 --version

(5) This will show you a result similar to the one mentioned below.

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


pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

How to use pip commands?

Now, that you have installed pip on your Ubuntu, use some basic pip commands.

pip --help


pip3-- help
pip on Ubuntu

This command will list all the pip commands and tools.

If you want information about the specific command, type,

pip <command name> --help

If you want to install packages, type and execute the command,

pip install packagename

To update a package, type,

pip install --upgrade packagename

To uninstall packages,

pip uninstall packagename

Techowns Tip: How to install Java on Ubuntu?

These are the thing that you need to know to install pip on Ubuntu. Use the basic commands to learn about pip if you are a beginner. When you get used to it, start developing Python applications. Begin your Python journey from here. If you have any doubts, tell us in the comments section.

Follow our social media pages, Facebook and Twitter to get more updates.

Was this article helpful?

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button