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)

lynxbee_ezoic

Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )

   


Leave a Comment

Android Android Build system Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded