ubuntu - 编译node.js时出现/usr/bin/env: python2: No such file or directory
高洛峰
高洛峰 2017-04-24 09:09:11
0
3
1015

执行 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这个是什么?

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

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(3)
大家讲道理

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

Ty80

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.

迷茫

Upload the soft link, if python is installed

sudo ln -s /usr/bin/python /usr/bin/python2
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template