Linux基础--------centos7 安装python3(yum安装)

 1 #安装sqlite-devel
 2 yum -y install sqlite-devel
 3  
 4 #安装依赖
 5 yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel
 6  
 7 #下载安装
 8 wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
 9 mkdir -p /usr/local/python3
10 tar -zxvf Python-3.6.1.tgz
11 cd Python-3.6.1
12 ./configure --prefix=/usr/local/python3
13 make
14 make install
15  
16  
17 #环境
18 vim ~/.bash_profile
19     PATH=$PATH:$HOME/bin:/usr/local/python3/bin
20     export PATH
21 source ~/.bash_profile

 

posted @ 2017-08-11 16:18  ForeverPine  阅读(212)  评论(0编辑  收藏  举报
TOP