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)