How to install pip in CentOS 7?

前端 未结 10 1208
暖寄归人
暖寄归人 2020-12-02 05:57

CentOS 7 EPEL now includes Python 3.4: yum install python34

However, when I try that, even though Python 3.4 installs successfully, it doesn\'t appear t

10条回答
  •  情深已故
    2020-12-02 07:00

    Update: The python34 bug mentioned below has finally been fixed. It is a perfectly fine choice now.

    Rather than using broken EPEL python34 packages, you can enable the IUS repo and have it work properly.

    • pip inside virtual environments

    The main python34u and python35u IUS packages include the pyvenv tool (/usr/bin/pyvenv-3.4 or /usr/bin/pyvenv-3.5) that includes bundled wheels of pip and setuptools for bootstrapping virtual environments.

    • global pip

    The python34u-pip and python35u-pip IUS packages include /usr/bin/pip3.4 and /usr/bin/pip3.5 respectively. These work just fine to install packages to the system site-packages directory.

提交回复
热议问题