初次安装时 cat /etc/redhat-release 查看os版本
7.7以上版本可以直接使用yum install python3.8进行安装
通过命令安装部分依赖时报错:yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
此时需要修改安装源来解决此问题,2020年12月2日,centos官方停止了对centos6的所有更新,并且下架了包括官方所有的centos6源,目前阿里、163、清华等centos6源已无法使用。
vim /etc/yum.repos.d/CentOS-Base.repo
修改此文件中$releasever为当前版本号,版本号地方都要修改为当前版本号
baseurl取消注释,并修改网址为安装源、各安装源可以百度 //没找到安装源,工作暂停