标签:linux centos centos7 python3
1、安装Python的依赖包
yum groupinstall "Development tools" yum 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.4.1/Python-3.4.1.tgz tar xf Python-3.4.1.tgz cd Python-3.4.1 ./configure --prefix=/usr/local --enable-shared make make install
echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf ldconfig
python3 --version Python 3.4.1
yum groupremove "Development tools" --remove-leaves yum remove zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel --remove-leaves
标签:linux centos centos7 python3
原文地址:http://blog.csdn.net/ucan23/article/details/42777913