首页 > 编程语言 > 详细

-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory

时间:2019-09-04 19:53:57      阅读:111      评论:0      收藏:0      [点我收藏+]

报错:-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory

python多版本造成额问题 找不到python的路径 所以保持

-查找python
#whereis python
python: /usr/bin/python /usr/bin/python2.4 /usr/lib/python2.4 /usr/local/bin/python2.7 /usr/local/bin/python /usr/local/bin/python2.7-config /usr/local/lib/python2.7 /usr/share/man/man1/python.1.gz

--查找yum
#whereis yum
yum: /usr/bin/yum /etc/yum.conf /etc/yum /usr/share/man/man8/yum.8.gz

--修改
#vi /usr/bin/yum
将首行的#!/usr/bin/python
更改成 #!/usr/bin/python2.4
保存退出!

解决!

 

-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory

原文:https://www.cnblogs.com/guo2733/p/11460887.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!