Home  >  Q&A  >  body text

ubuntu - 编译node.js时出现/usr/bin/env: python2: No such file or directory

执行 node.js make的时候 出现/usr/bin/env: python2: No such file or directory

后来百度了在Stack Overflow这个大牛社区找到了答案

http://stackoverflow.com/questions/11390206/usr-bin-env-python2-no-such-file-or-directory

后来按照 最后面的方案 apt-get --reinstall install python-minimal 解决了问题 ,但是因为都是英文 在线翻译又 不太准确 所以请大神指点一下 倒是是因为python2 没安装 还是缺少库什么的。

还有apt-get --reinstall 这条命令 为什么一般百度出来的 都没这个reinstall 这条指令 还有python-minimal这个是什么?

求答案啊!!!!!!!求答案啊!!!!!!!求答案啊!!!!!!!求答案啊!!!!!!!

高洛峰高洛峰2737 days ago967

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-24 09:11:11

    To put it simply, python is installed incorrectly and requires you to reinstall it

    It may also be caused by incorrect installation due to conflicts with other software

    In short, reinstalling can usually solve the problem

    reply
    0
  • PHP中文网

    PHP中文网2017-04-24 09:11:11

    It seems to be a problem with python env. I haven’t used its virtual environment much. However, you can find it in your running file, write "/usr/bin/env: python2" in the file header, and then replace it with the actual path of python2 on the native machine.

    reply
    0
  • 迷茫

    迷茫2017-04-24 09:11:11

    Upload the soft link, if python is installed

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

    reply
    0
  • Cancelreply