centos7 yum命令无效-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory

时间:2024-04-03 13:04:06

centos7 yum命令无效-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory

 服务器安装上python3.6版本后导至liunx找不到自带的python2版本路径;更改下yum便可以使用

出现场景是,安装docker,添加源时,出现bug安装代码失败

vi /usr/bin/yum-config-manager

centos7 yum命令无效-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory