How to install pip with Python 3?

后端 未结 21 1279
夕颜
夕颜 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 02:02

    For Ubuntu 12.04 or older,

    sudo apt-get install python3-pip
    

    won't work. Instead, use:

    sudo apt-get install python3-setuptools ca-certificates
    sudo easy_install3 pip
    

提交回复
热议问题