/usr/bin/env:python2:没有这样的文件或目录
问题描述:
我正在尝试在Ubuntu上为Emacs配置Python,但出现以下错误:
I am trying to configure Python for my Emacs on Ubuntu, and I get the following error:
/usr/bin/env: python2: No such file or directory
有人可以帮我吗?我该怎么解决?
Can someone help me with it? What can I do to resolve it?
答
可能是正确的.链接/usr/bin/python2 -> (the real one)
应该由您的Python软件包提供,但事实并非如此,也不能在通过$PATH
可以找到它的任何其他位置.
Probably that's just true. The link /usr/bin/python2 -> (the real one)
should be provided by your Python package, but that's obviously not the case, nor on any other location where it can be found via the $PATH
.
您应将上述链接放在(一个)适当位置的路径中.
You should put the said link in your path at the (an) appropriate place.