MuYi

教你给CentOS安装Python3.6.4版本
获取编译包注意:请先安装依赖yum -y install zlib-devel bzip2-devel opens...
扫描右侧二维码阅读全文
18
2018/12

教你给CentOS安装Python3.6.4版本

获取编译包

注意:请先安装依赖

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
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz

解压

tar -zxvf Python-3.6.4.tgz

移动到安装目录

mv Python-3.6.4 /usr/local

进入目录

cd /usr/local/Python-3.6.4

编译安装

./configure
make
make install

软链接

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

大功告成

python3 -V
Last modification:December 18th, 2018 at 02:54 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment