How to install pip with Python 3?

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

    python3 -m ensurepip
    

    I'm not sure when exactly this was introduced, but it's installed pip3 for me when it didn't already exist.

提交回复
热议问题