How to install pip for python 2.6?

2019-01-09 14:34发布

I tried following the instructions from this answer but easy_install-2.6 could not find pip:

>sudo easy_install-2.6 pip
Processing pip
error: Not a recognized archive type: pip

How do I install pip for python 2.6?

My root need for pip for 2.6 is explained in this thread.

4条回答
我想做一个坏孩纸
2楼-- · 2019-01-09 15:01

From this page : pip

pip works with CPython versions 2.6, 2.7, 3.1, 3.2, 3.3, 3.4 and also pypy.

sudo apt-get install python-pip
查看更多
Animai°情兽
3楼-- · 2019-01-09 15:18

Find below the steps to install pip on Python 2.6.X:

$ curl https://bootstrap.pypa.io/2.6/get-pip.py -o get-pip.py
$ python get-pip.py
查看更多
▲ chillily
4楼-- · 2019-01-09 15:20

Just follow the instructions here:

  1. Securely download get-pip.py.
  2. In the directory you saved get-pip.py, run

    sudo python2.6 get-pip.py
    

    and you'll be all set.

This will install pip for Python 2.6, and won't touch your version 2.7 installation.

查看更多
ら.Afraid
5楼-- · 2019-01-09 15:20

on fedora/centos system, just use

yum install python-pip

on other linux system,use yum-like install tool

on window ,use the other solutions under this question

查看更多
登录 后发表回答