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

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

-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
保存退出!

解决!

posted on 2018-01-11 09:49  baker95935 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/baker95935/p/8266946.html

你可能感兴趣的:(-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory)