CentOS7安装Python3

#!/bin/bash
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel



wget https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tgz



mkdir /usr/local/python3 

tar -zxvf Python-3.5.3.tgz
cd Python-3.5.3


./configure --prefix=/usr/local/python3

make && make install


ln -s /usr/local/python3/bin/python3 /usr/bin/python3


ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

pip3 -V
python3 -V

  

posted @ 2017-11-16 18:13  ihoneysec  阅读(789)  评论(0编辑  收藏  举报