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错误

解决方案:https://www.cnblogs.com/luckjinyan/p/13592517.html

上一篇:Ubuntu install php swoole


下一篇:CentOS下安装Jmeter