How to install pip in CentOS 7?

前端 未结 10 1209
暖寄归人
暖寄归人 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:03

    The easiest way I've found to install pip3 (for python3.x packages) on CentOS 7 is:

    $ sudo yum install python34-setuptools
    $ sudo easy_install-3.4 pip
    

    You'll need to have the EPEL repository enabled before hand, of course.

    You should now be able to run commands like the following to install packages for python3.x:

    $ pip3 install foo
    

提交回复
热议问题