-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 multi-path version of python can not find the problem causing the amount so keep

- Find 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 /usr/local/lib/python2.7 /usr/share/man/man1/python.1.gz /local/bin/python2.7-config

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

- modify
#vi / usr / bin / yum
! the first line of # / usr / bin / python
changed to #! /usr/bin/python2.4
save and exit!

solve!

 

Python multi-path version of python can not find the problem causing the amount so keep

- Find 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 /usr/local/lib/python2.7 /usr/share/man/man1/python.1.gz /local/bin/python2.7-config

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

- modify
#vi / usr / bin / yum
! the first line of # / usr / bin / python
changed to #! /usr/bin/python2.4
save and exit!

solve!

Guess you like

Origin www.cnblogs.com/guo2733/p/11460887.html