How to install Python Pip3 in Ubuntu?

Python is one of the most popular programming languages used by developers and data scientists worldwide. Pip, short for “Pip Installs Packages,” is a package management system that installs and manages Python packages. This command-line tool allows developers to easily install, update, and remove Python packages from their projects.

Pip3 is included by default in Python 3.4 and later versions. It installs packages from the Python Package Index (PyPI) and other package indexes. Pip3 automatically resolves dependencies and installs them along with the package, making it easy to install complex packages with many dependencies. This article will discuss how to install pip3 on an Ubuntu server.

How to install Python Pip3 on Ubuntu Server?

Step 1: Update the Ubuntu package

The first step in installing pip3 on Ubuntu is ensuring the package index is up-to-date. Once the terminal is open, type the following command to update the package index:

# apt update

This command will fetch the latest updates for your Ubuntu operating system.

Step 2: Install pip3

After updating the package index, you can install pip3 by typing the following command:

# apt install python3-pip

This command will install pip3 on your Ubuntu system. You may be prompted to enter your password to authorize the installation.


Step 3: Verify pip3 installation

Once the installation is complete, you can verify that pip3 is installed correctly by typing the following command:

# pip3 --version

This command will display the version of pip3 installed on your Ubuntu system.

Step 4: Using pip3

Now that pip3 is installed on your Ubuntu system, you can use it to install Python packages. For example, to install the NumPy package, you can type the following command:

# pip3 install numpy

This command will download and install the NumPy package and its dependencies.


In this blog post, we discussed installing pip3 on the Ubuntu server. Pip3 is an essential tool for Python developers and data scientists, allowing them to manage Python packages easily. By following the steps outlined in this article, you can quickly install pip3 on your Ubuntu system and start using it to install Python packages.


Was this answer helpful?

« Back