Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/usr/bin/env: python2: No such file or directory [closed]

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?

like image 360
murtaza52 Avatar asked Jul 09 '12 06:07

murtaza52


2 Answers

Try this command in terminal

sudo ln -s /usr/bin/python2.6 /usr/bin/python2

or

sudo apt-get install python2

like image 116
ParaMeterz Avatar answered Nov 04 '22 22:11

ParaMeterz


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.

like image 9
glglgl Avatar answered Nov 04 '22 22:11

glglgl