当前位置:   article > 正文

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

yum安装python3.9

步骤复现

centos 中用 yum 命令安装 python3.9

yum install python3.9
yum install python3-pip
  • 1
  • 2

报错内容

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

解决办法

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

yum install -y epel-release
  • 1

如果还是没解决就更新yum

yum update
  • 1

再次执行python安装命令即可

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/701922
推荐阅读
相关标签
  

闽ICP备14008679号