How to install pip on Ubuntu 16.04?

Ads
 

How to install pip on Ubuntu 16.04?

Hi,

How to install pip on Ubuntu 16.04?

I am running the command apt-get install pip, but its not working.

Thanks

View Answers

August 24, 2016 at 5:48 AM

Hi,

You can us the Correct command:

sudo apt-get install python-pip

People are searching for following command:

apt-get install pip

But the correct command to install pip or python-pip is:

sudo apt-get install python-pip

Thanks


August 24, 2016 at 5:49 AM

Hi,

Here is the full log of the program:

[email protected]:/home/deepak# sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]    
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial InRelease                     
Get:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]   
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:5 http://dl.google.com/linux/chrome/deb stable Release                     
Hit:6 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease           
Hit:8 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease        
Fetched 190 kB in 6s (27.3 kB/s)                                               
Reading package lists... Done
[email protected]:/home/deepak# sudo apt-get install python-pip 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libexpat1-dev libpython-all-dev libpython-dev libpython2.7-dev python-all
  python-all-dev python-dev python-pip-whl python-pkg-resources
  python-setuptools python-wheel python2.7-dev
Suggested packages:
  python-setuptools-doc
The following NEW packages will be installed:
  libexpat1-dev libpython-all-dev libpython-dev libpython2.7-dev python-all
  python-all-dev python-dev python-pip python-pip-whl python-pkg-resources
  python-setuptools python-wheel python2.7-dev
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.8 MB of archives.
After this operation, 45.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libexpat1-dev amd64 2.1.0-7ubuntu0.16.04.2 [115 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-dev amd64 2.7.12-1~16.04 [27.8 MB]
Get:3 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libpython-dev amd64 2.7.11-1 [7,728 B]
Get:4 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libpython-all-dev amd64 2.7.11-1 [992 B]
Get:5 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 python-all amd64 2.7.11-1 [978 B]
Get:6 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7-dev amd64 2.7.12-1~16.04 [276 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 python-dev amd64 2.7.11-1 [1,160 B]
Get:8 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 python-all-dev amd64 2.7.11-1 [1,000 B]
Get:9 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-pip-whl all 8.1.1-2ubuntu0.2 [1,111 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-pip all 8.1.1-2ubuntu0.2 [144 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 python-pkg-resources all 20.7.0-1 [108 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 python-setuptools all 20.7.0-1 [169 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 python-wheel all 0.29.0-1 [48.0 kB]
Fetched 29.8 MB in 32s (907 kB/s)                                              
Selecting previously unselected package libexpat1-dev:amd64.
(Reading database ... 213298 files and directories currently installed.)
Preparing to unpack .../libexpat1-dev_2.1.0-7ubuntu0.16.04.2_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.1.0-7ubuntu0.16.04.2) ...
Selecting previously unselected package libpython2.7-dev:amd64.
Preparing to unpack .../libpython2.7-dev_2.7.12-1~16.04_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.12-1~16.04) ...
Selecting previously unselected package libpython-dev:amd64.
Preparing to unpack .../libpython-dev_2.7.11-1_amd64.deb ...
Unpacking libpython-dev:amd64 (2.7.11-1) ...
Selecting previously unselected package libpython-all-dev:amd64.
Preparing to unpack .../libpython-all-dev_2.7.11-1_amd64.deb ...
Unpacking libpython-all-dev:amd64 (2.7.11-1) ...
Selecting previously unselected package python-all.
Preparing to unpack .../python-all_2.7.11-1_amd64.deb ...
Unpacking python-all (2.7.11-1) ...
Selecting previously unselected package python2.7-dev.
Preparing to unpack .../python2.7-dev_2.7.12-1~16.04_amd64.deb ...
Unpacking python2.7-dev (2.7.12-1~16.04) ...
Selecting previously unselected package python-dev.
Preparing to unpack .../python-dev_2.7.11-1_amd64.deb ...
Unpacking python-dev (2.7.11-1) ...
Selecting previously unselected package python-all-dev.
Preparing to unpack .../python-all-dev_2.7.11-1_amd64.deb ...
Unpacking python-all-dev (2.7.11-1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../python-pip-whl_8.1.1-2ubuntu0.2_all.deb ...
Unpacking python-pip-whl (8.1.1-2ubuntu0.2) ...
Selecting previously unselected package python-pip.
Preparing to unpack .../python-pip_8.1.1-2ubuntu0.2_all.deb ...
Unpacking python-pip (8.1.1-2ubuntu0.2) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../python-pkg-resources_20.7.0-1_all.deb ...
Unpacking python-pkg-resources (20.7.0-1) ...
Selecting previously unselected package python-setuptools.
Preparing to unpack .../python-setuptools_20.7.0-1_all.deb ...
Unpacking python-setuptools (20.7.0-1) ...
Selecting previously unselected package python-wheel.
Preparing to unpack .../python-wheel_0.29.0-1_all.deb ...
Unpacking python-wheel (0.29.0-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Processing triggers for man-db (2.7.5-1) ...
Setting up libexpat1-dev:amd64 (2.1.0-7ubuntu0.16.04.2) ...
Setting up libpython2.7-dev:amd64 (2.7.12-1~16.04) ...
Setting up libpython-dev:amd64 (2.7.11-1) ...
Setting up libpython-all-dev:amd64 (2.7.11-1) ...
Setting up python-all (2.7.11-1) ...
Setting up python2.7-dev (2.7.12-1~16.04) ...
Setting up python-dev (2.7.11-1) ...
Setting up python-all-dev (2.7.11-1) ...
Setting up python-pip-whl (8.1.1-2ubuntu0.2) ...
Setting up python-pip (8.1.1-2ubuntu0.2) ...
Setting up python-pkg-resources (20.7.0-1) ...
Setting up python-setuptools (20.7.0-1) ...
Setting up python-wheel (0.29.0-1) ...
[email protected]:/home/deepak# 
[email protected]:/home/deepak# pip --version
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)

Thanks

Ads









Related Tutorials/Questions & Answers:
How to install pip on Ubuntu 16.04?
How to install Neo4j on Ubuntu 15.10?
Advertisements
How to install Ubuntu 16.04 LTS?
How to download and install Ubuntu 16.04?
How to install ffmpeg on Ubuntu 16.04?
How to install p7zip on Ubuntu 16.04?
How to install autoconf, automake and libtool in Ubuntu 15.10?
How to install virtualbox guest additions in Ubuntu 16.04?
How to install MySQL Server and Client on Ubuntu 16.04?
How to install LAMP server on Ubuntu 16.04 LTS?
How to install gtk-doc-tools package in Ubuntu?
How to install Oracle JDK 8 on Ubuntu?
How to install jre on Ubuntu 16.04 LTS?
How To Install Google Chrome on Ubuntu 16.04?
How to install Eclipse in Ubuntu using terminal?
How to Install Oracle Java JDK 8 in Ubuntu 16.04?
How to upgrade Ubuntu to Ubuntu 16.04 LTS?
How to install PHP 5 on Ubuntu 15.10?
How to upgrade Ubuntu 16.04 LTS?
how to find jdk path in ubuntu?
How to see ubuntu version on server?
how to run jdbc program in linux-ubuntu?
how to run jdbc program in linux-ubuntu?
how to install jboss drools
How to check Hadoop version in Ubuntu?
How to install GParted Partition Manager?
How to download and install Tomcat?
How to install cocoapods in Max?
How to install JDK in Centos?
how to install jboss - EJB
How to uninstall JDK from Ubuntu 16.04?

Ads