How to install pip with Python 3?

后端 未结 21 1529
夕颜
夕颜 2020-11-22 01:06

I want to install pip. It should support Python 3, but it requires setuptools, which is available only for Python 2.

How can I install pip with Python 3?

21条回答
  •  醉梦人生
    2020-11-22 01:53

    Update 2015-01-20:

    As per https://pip.pypa.io/en/latest/installing.html the current way is:

    wget https://bootstrap.pypa.io/get-pip.py
    python get-pip.py
    

    I think that should work for any version


    Original Answer:

    wget http://python-distribute.org/distribute_setup.py
    python distribute_setup.py
    easy_install pip
    

提交回复
热议问题