How to install pip in CentOS 7?

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

    Below are the steps I followed to install python34 and pip

    yum update -y
    yum -y install yum-utils
    yum -y groupinstall development
    yum -y install https://centos7.iuscommunity.org/ius-release.rpm
    yum makecache
    yum -y install python34u  python34u-pip
    python3.6 -v
    echo "alias python=/usr/bin/python3.4" >> ~/.bash_profile
    source ~/.bash_profile
    pip3 install --upgrade pip
    
    # if yum install python34u-pip doesnt work, try 
    
    curl https://bootstrap.pypa.io/get-pip.py | python
    

提交回复
热议问题