How To Install Pip On Ubuntu 20.04 LTS

How To Install Pip On Ubuntu 20.04 LTS

Tutorial  To Install Pip On Ubuntu 20.04 LTS.

In this tutorial post, we are going to install Pip on Ubuntu 20.04 LTS operating system. Pip is the package installer for Python. It is the standard package-management system used to install and manage software packages written in Python. You can use Pip to install packages from the Python Package Index and other indexes.

Check our coverage on Ubuntu 20.04:

How To Install Pip On Ubuntu 20.04 LTS

Ubuntu 20.04 LTS is the latest stable version that will have long term support. You will see the process to install Pip on Ubuntu below. Run the following commands if Pip is not installed in your Ubuntu. Ubuntu 20.04 and other versions of Debian Linux ship with Python 3 pre-installed.

Run the following command to install pip for Python 3 on Ubuntu 20.04:

sudo apt update
sudo apt install python3-pip

Run the following command to verify the installation by checking the pip version:

pip3 --version

If you have installed Python 2 from the Universe repository, run the following command to install Pip for Python 2 in Ubuntu 20.04 LTS:

Note: Sadly, Pip for Python 2 is not included in the Ubuntu 20.04 repositories so we need help from external sources.

READ More Relevant Stuff:  How To Download Ubuntu 20.04 LTS & Derivatives

Enable the universal repository in Ubuntu 20.04 LTS:

sudo add-apt-repository universe

Update the packages and install Python 2 in Ubuntu 20.04 LTS:

sudo apt update 
sudo apt install python2

Now, you need to use curl to download the get-pip.py script:

curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py

Now you can run the following command to install pip for Python 2:

sudo python2 get-pip.py

Verify your installation with the below command:

pip2 --version

How To Install Packages With Pip On Ubuntu

pip3 install pacakage-name

To list all the installed pip packages, Run the command below:

pip3 list

Run the following command to uninstall package with Pip:

pip3 uninstall package-name

 

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 *