1、首先安装 sqlite-devel
yum install sqlite-devel
2、安装python3
python 3.6.2版本下载地址
https://www.python.org/downloads/release/python-362/
新建目录
mkdir -p /usr/local/python3
将安装包进行解压
$tar -xzvf Python-3.6.2.tgz
进入目录
$cd Python_3.6.2
添加配置
$./configure --prefix=/usr/local/python3
编译源码
$make
执行安装
$make install
建立python3的软链
$ln -s /usr/local/python3/bin/python3 /usr/bin/python3
将/usr/local/python3/bin加入PATH
$vim ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environme