Ubuntu

How To Install Pip On Ubuntu 18.04 LTS

install pip on ubuntu 18.04
Written by admin

Insight: Install pip on Ubuntu 18.04 LTS

Pip is a command line python based tool which is used to install the software package in Linux. In this post, we will show you the various method to install Pip on Ubuntu 18.04 LTS.

How To Install Pip On Ubuntu 18.04 LTS

Install Pip for Python 2

Make  sure that you have python 2 installed in your system.

python2 --version

Install pip for Python 2 using this command:

sudo apt install python-pip

After installing, you can verify it using following command:

pip --version

Install Pip for Python 3

Make  sure that you have python 2 installed in your system.

python3 --version

Install pip for Python 2 using this command:

sudo apt install python3-pip

After installing, you can verify it using following command:

pip --version

Installing packages using Pip. Pip supports installing from PyPI

$ pip install SomePackage            # latest version
$ pip install SomePackage==1.0.4     # specific version
$ pip install 'SomePackage>=1.0.4'     # minimum version

 

About the author

admin