1、安裝工具
sudo yum groupinstall "Development tools"
sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-develtk-devel gdbm-devel db4-devel libpcap-devel xz-devel
2、下載python3
3、下載完后對(duì)壓縮包解壓縮
tar -xvf Python-3.6.2.tar.xz
4套耕、進(jìn)入解壓縮完后的文件夾
cd Python-3.6.2
5、 配置
./configure
6、編譯
sudo make
7桩蓉、安裝
sudo make install