CentOS7.6更新python3.8本版
2021-03-27 06:27
标签:linu readline firewalld 依赖 sel selinux 关闭 ssl user 删除原有的python2.7 [root@rhel7 user1]# whereis python|xargs rm -frv 一、下载python3.8版本 二、解压 三、进入解压后的目录并预设值 四、编译并安装 CentOS7.6更新python3.8本版 标签:linu readline firewalld 依赖 sel selinux 关闭 ssl user 原文地址:https://blog.51cto.com/kangxi/2532699
系统状态: 关闭selinux、firewalld
安装依赖包:[root@rhel7 Python-3.8.0]# yum install zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel libffi-devel
(重启)
[root@rhel7 user1]# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps
[root@rhel7 Python-3.8.0]# wget http://npm.taobao.org/mirrors/python/3.8.0/Python-3.8.0.tgz
[root@rhel7 Python-3.8.0]# tar -xzf Python-3.8.0.tgz
[root@rhel7 Python-3.8.0]# ./configure --prefix=/usr/local/python3.8
[root@rhel7 Python-3.8.0]# make && make install
上一篇:Python3网页爬取
文章标题:CentOS7.6更新python3.8本版
文章链接:http://soscw.com/index.php/essay/68466.html