search

Home  >  Q&A  >  body text

python2.7 - 请问如何解决 No such file or directory: 'python'?

PHPzPHPz2804 days ago1146

reply all(3)I'll reply

  • 迷茫

    迷茫2017-04-18 09:37:52

    Add the path to the python executable file to the system environment variablePATH

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 09:37:52

    Try changing to a different Python version

    reply
    0
  • PHPz

    PHPz2017-04-18 09:37:52

    Already solved!
    Soft link python to /usr/bin/python.
    I’m really speechless. My previous soft link address was /usr/local/bin/python.
    And my PATH path also contains /usr/local/bin. It's also posted in the question.

    I don’t know why it must be under the path /usr/bin/python. #todo

    reply
    0
  • Cancelreply