python3安装

#安装sqlite-devel

yum -y install sqlite-devel
 
#安装依赖
yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel
 
#下载安装
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
mkdir -p /usr/local/python3
tar -zxvf Python-3.6.1.tgz
cd Python-3.6.1
./configure --prefix=/usr/local/python3
make
make install
 
#软连接
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
 
#环境
vim ~/.bash_profile
    PATH=$PATH:$HOME/bin:/usr/local/python3/bin
    export PATH
source ~/.bash_profile

 

 
 
posted @ 2017-10-31 10:45  luchuangao  阅读(214)  评论(0编辑  收藏  举报