centos6.5 安装 python3.7.0

配置依赖先

yum groupinstall ‘Development Tools’

yum install zlib-devel bzip2-devel openssl-devel ncurses-devel

yum install libffi-devel -y

去下载 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz

解压

tar -xvf Python-3.7.0.tgz

cd Python-3.7.0

./configure –prefix=/usr/local/python3 –enable-optimizations

make && make install

 

建立软链接

ln -s /usr/local/python3/bin/python3 /usr/bin/

发表评论

电子邮件地址不会被公开。 必填项已用*标注