This mini how to will show you how to install pip on Ubuntu 16.04. Pip is a good alternative to install Python packages. With pip, we can easily install various packages written in Python. For more information about pip, please visit this wiki page.
Install pip on Ubuntu 16.04
Open Terminal and execute the following command to install pip and all its dependencies.
sudo apt install python-pip python-dev build-essential
Output
dhani@dhani-ThinkPad-T450:~/Downloads/AWS_LightSail$ sudo apt install python-pip python-dev build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.1ubuntu2). The following packages were automatically installed and are no longer required: linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-image-4.4.0-87-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-92-generic Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libpython-all-dev libpython-dev libpython2.7-dev python-all python-all-dev python-pip-whl python-setuptools python-wheel python2.7-dev Suggested packages: python-setuptools-doc The following NEW packages will be installed: libpython-all-dev libpython-dev libpython2.7-dev python-all python-all-dev python-dev python-pip python-pip-whl python-setuptools python-wheel python2.7-dev 0 upgraded, 11 newly installed, 0 to remove and 65 not upgraded. Need to get 29,6 MB of archives. After this operation, 43,8 MB of additional disk space will be used. Do you want to continue? [Y/n]
In few moments, pip should be installed and ready for use. Thanks for reading this post and cheers.
Leave a Reply