天天看点

Storm运行错误 /usr/bin/env: ‘python’: No such file or directory

  • 用 storm 命令时出现错误:
./storm: line 42: 10 * ‘python’: + ‘python’:: syntax error: operand expected (error token is "‘python’: + ‘python’:")
./storm: line 43: ((: < 26 : syntax error: operand expected (error token is "< 26 ")
/usr/bin/env: ‘python’: No such file or directory
[email protected]:~/storm-2.2.0/bin# python
           
  • 是因为没有 python 命令,创建一个软链接即可:

    sudo ln -s /usr/bin/python3 /usr/bin/python

    。这时输入python就代表输入python3。