赞
踩
yum -y groupinstall "Development tools"
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
yum install -y libffi-devel zlib1g-dev
yum -y install zlib*
cd /opt
tar -zxvf Python-3.7.7.tgz -C /usr/local
cd /usr/local/Python-3.7.7
./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl
make && make install
vim /etc/profile
在文件末尾添加以下内容
export PYTHON_HOME=/usr/local/python3
export PATH=$PYTHON_HOME/bin:$PATH
source /etc/profile
python3
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。