详细安装过程如下:
安装依赖环境
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 gcc libffi-devel gcc make automake autoconf libtool libffi-devel
下载安装包
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
解压
tar -zxvf Python-3.7.2.tgz
进来目录
cd Python-3.7.2
初始化环境
./configure –prefix=/usr/local/python3
安装
make && make install
设置软连接
ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3 ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
查看python3版本
python3 -V
神龙|纯净稳定代理IP免费测试>>>>>>>>天启|企业级代理IP免费测试>>>>>>>>IPIPGO|全球住宅代理IP免费测试