安装python3(自动安装pip3):
yum install gcc
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
#不安装依赖可能安装完成后没有pip3 软件
到https://www.python.org/downloads/source/ 下载Python-3.5.3.tar
scp 到centos的服务器上
tar xf Python-3.5.3.tgz cd Python-3.5.3
./configure --prefix=/usr/local/python3
make
make install
ln -sv /usr/local/python3/bin/pip3 /usr/local/bin/
ln -sv /usr/local/python3/bin/python3 /usr/local/bin/
作者:willian
联系邮箱:18702515157@163.com