运维开发网

CentOS7.6更新python3.8本版

运维开发网 https://www.qedev.com 2020-09-14 12:17 出处:51CTO 作者:丁广鹏
系统环境:CentOS7.6系统状态:关闭selinux、firewalld安装依赖包:[[email protected]]#yuminstallzlib-develbzip2bzip2-develreadline-develsqlitesqlite-developenssl-develxzxz-devellibffi-devel(重启)一、下载python3.8版本[[email protected]

系统环境: CentOS7.6

系统状态: 关闭seLinux、firewalld

安装依赖包:[[email protected] Python-3.8.0]# yum install zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel libffi-devel

(重启)

删除原有的python2.7

[[email protected] user1]# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps

[[email protected] user1]# whereis python|xargs rm -frv

一、下载python3.8版本

[[email protected] Python-3.8.0]# wget http://npm.taobao.org/mirrors/python/3.8.0/Python-3.8.0.tgz

二、解压

[[email protected] Python-3.8.0]# tar -xzf Python-3.8.0.tgz

三、进入解压后的目录并预设值

[[email protected] Python-3.8.0]# ./configure --prefix=/usr/local/python3.8

四、编译并安装

[[email protected] Python-3.8.0]# make && make install

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号