centos6使用yum安装python3和pip3

在安装了epel源的情况下,直接yum就可以安装python3.4

#yum install python34 -y
# python3 --version
Python 3.4.5

 没有自带pip3,需要从官网安装

#wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
#python3 get-pip.py
#pip3 -V
pip 9.0.1 from /usr/lib/python3.4/site-packages (python 3.4

检查是否安装成功

# python
python      python2     python2.6   python3     python3.4   python3.4m 

 

转载于:https://www.cnblogs.com/aresxin/p/8329095.html

你可能感兴趣的:(centos6使用yum安装python3和pip3)