How to install pip in CentOS 7?

前端 未结 10 1210
暖寄归人
暖寄归人 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 06:56

    Update 2019

    I tried easy_install at first but it doesn't install packages in a clean and intuitive way. Also when it comes time to remove packages it left a lot of artifacts that needed to be cleaned up.

    sudo yum install epel-release
    sudo yum install python34-pip
    pip install package
    

    Was the solution that worked for me, it installs "pip3" as pip on the system. It also uses standard rpm structure so it clean in its removal. I am not sure what process you would need to take if you want both python2 and python3 package manager on your system.

提交回复
热议问题