Install python pip in Debian Wheezy

How to install pip in Debian Wheezy?

I’ve found many advises apt-get install python-pip but the result is

“Unable to locate package python-pip”

Is pip available in Debian Wheezy? I’m using 7.8

Asked By: Jako


try apt-get update. I see it in debian wheezy:

root@aramin:/home/undefine# apt-cache show python-pip
Package: python-pip
Version: 1.1-3
Installed-Size: 457
Maintainer: Debian Python Modules Team 
Architecture: all
Depends: python2.6, python (>= 2.6.6-7~), python (= 0.6c1)
Recommends: python-dev-all (>= 2.6), build-essential
Description-en: alternative Python package installer
 pip is a replacement for easy_install, and is intended to be an improved
 Python package installer.  It integrates with virtualenv, doesn't do partial
 installs, can save package state for replaying, can install from non-egg
 sources, and can install from version control repositories.
Description-md5: 8d21e4048f43043df36daaae334010b5
Tag: admin::package-management, devel::lang:python, devel::packaging,
 implemented-in::python, role::program
Section: python
Priority: optional
Filename: pool/main/p/python-pip/python-pip_1.1-3_all.deb
Size: 111846
MD5sum: b9f16d9d57fbfb42a96d3b2ece11acae
SHA1: c33418777cbb82320a53f63083ecea1da4f8f559
SHA256: ffd03a25f0c1f457e810a930d83b0cab07e8c70b0f3ce63747544cc6fc39a61f

root@aramin:/home/undefine# apt-cache policy python-pip
  Zainstalowana: (brak)
  KandydujÄ…ca:   1.1-3
  Tabela wersji:
     1.1-3 0
        500 debtorrent://localhost/ stable/main i386 Packages
Answered By: undefine

Although apt-get update might seem to help you, I recommend strongly against using pip installed from the Wheeze repository with apt-get install python-pip:

  • that pip is at version 1.1 while the current version is > 9.0
  • version 1.1 of pip has known security problems when used to download packages
  • version 1.1 doesn’t restrict downloads/installs to stable versions of packages
  • lacks a lot of new functionality (like support for the wheel format) and misses bug fixes (see the changelog)
  • python-pip installed via apt-get pulls in some perl modules for whatever reason

Unless you are running python2.4 or so that is still supported by pip 1.1 (and which you should not use anyway) you should follow the installation instructions on the pip documentation page to securely download pip (don’t use the insecure pip install --upgrade pip with the 1.1 version, and certainly don’t install any packages with sudo pip ... with that version)

If you already have made the mistake of installing pip version 1.1, immediately do:

sudo apt-get remove python-pip

After that:


(for any of the python versions you have installed).

Python2 versions starting with 2.7.9 and Python3 version starting with 3.4 have pip included by default.

Answered By: Anthon

I had the same issue on Debian “jessie”, this worked for me:

sudo apt-get remove python* 
sudo aptitude install python-pip
Answered By: brauliojbb
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.