How to Install Python Pip on Ubuntu 22.04 LTS

How To Install Python Pip On Ubuntu 22.04 LTS

How to Install Python Pip on Ubuntu 22.04 LTS

Pip is the standard package-management system that is used to install and manage software packages written in Python. In short, Pip is the package installer for Python. From Ubuntu 20.04, Python 3 is included in the base system installation but you still have the option of installing Python 2 from the universe repository.

How To Install Python Pip On Ubuntu 22.04 LTS

1. Install pip for Python 3 on Ubuntu 22.04

If you want to install pip for Python 3 on Ubuntu 22.04 then you need to run the following commands in your terminal. You should have the administrative (sudo) privilege to install Pip.

Run this command to update your system and repositories.

sudo apt update

Run this command to install Python3 Pip on Ubuntu 22.04 LTS.

sudo apt install python3-pip

Wait for a while as the installation will complete. After completing the installation process, run the command below to verify the installation by checking the pip version:

pip3 --version

1. Install pip for Python 2 on Ubuntu 22.04

Pip for Python 2 is not included in the Ubuntu 22.04 repositories by default. We need to install it from the universe repository. You need to enable the universe repository.

READ More Relevant Stuff:  How To Add SSH Public Key To Server

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

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