centos7 yum安装python3.9时报错【没有可用软件包 python3.9。 错误:无须任何处理】

步骤复现

在 centos 中用 yum 命令安装 python3.9

yum install python3.9
yum install python3-pip

报错内容

已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.lzu.edu.cn
 * extras: mirror.lzu.edu.cn
 * updates: mirror.lzu.edu.cn
没有可用软件包 nginx。
错误:无须任何处理

解决办法

yum没有找到对应依赖包,更新epel第三方软件库

yum install -y epel-release

如果还是没解决就更新yum

yum update

再次执行python安装命令即可

猜你喜欢

转载自blog.csdn.net/weixin_43721000/article/details/134377522