How to Install Pip on Ubuntu

pip is a package-management system used to install and manage software packages written in Python. Many packages can be found in the default source for packages and their dependencies — Python Package Index (PyPI). Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip (pip3 for Python 3) by default.

Default installation of Ubuntu doesn’t contain pip already installed, so we need to install the same on ubuntu if we require it. This can be installed as below,

 $ sudo apt-get install python-pip 
The following additional packages will be installed:
  libpython-all-dev python-all python-all-dev python-dbus python-gi python-keyring python-keyrings.alt python-secretstorage python-setuptools python-wheel python-xdg
Suggested packages:
  python-dbus-dbg python-dbus-doc python-gi-cairo libkf5wallet-bin python-fs python-gdata python-keyczar python-secretstorage-doc python-setuptools-doc
The following NEW packages will be installed:
  libpython-all-dev python-all python-all-dev python-dbus python-gi python-keyring python-keyrings.alt python-pip python-secretstorage python-setuptools python-wheel python-xdg
0 upgraded, 12 newly installed, 0 to remove and 53 not upgraded.
Need to get 897 kB of archives.
After this operation, 3,814 kB of additional disk space will be used.

The versions of pip command installed can be checked as,

 $ pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
$ pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
Android Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Commands and Packages Compilation Content Management System - CMS Core Kernel C Programs Development & Build Development Environment Setup Errors & Failures Flutter git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized User Interface Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply / Ask Question