python3.7安装
下载安装包:wget https://www.python.org/ftp/python/3.7.6/Python-3.7.6.tgz
解压:tar -zxvf Python-3.7.6.tgz
安装依赖
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 libffi-devel
编译安装:
./configure --prefix=/usr/local/python3 --enable-optimizations
make && make install
注意:
安装后使用pip时出现错误:
提示TLS/SSL错误
有用请点推荐!