How to install pip with Python 3?

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

    What’s New In Python 3.4

    ...

    pip should always be available

    ...

    By default, the commands pipX and pipX.Y will be installed on all platforms (where X.Y stands for the version of the Python installation), along with the pip Python package and its dependencies.

    https://docs.python.org/3/whatsnew/3.4.html#whatsnew-pep-453

    so if you have python 3.4 installed, you can just: sudo pip3 install xxx

提交回复
热议问题