Lilavivat a écrit : > Running SUSE 10.1 on an AMD64. When I try and run a python program I get > the following error: > > /usr/bin/python2: bad interpreter: No such file or directory > > "which python" gives me "/usr/local/bin/python" > > "which python2.4" gives me "/usr/local/bin/python2.4" > > But /usr/bin/python is symlinked to python2.4 "python -> python2.4" > > "which python2" and nothing comes up. > > Basically I have no idea what's going on... help please! > > Thanks, > SETH Fault of the Python program : it hardcodes that the Python interpreter is /usr/bin/python2
Check the first line of the executable ( I bet it is a simple text file so go away and edit it with emacs/vim/joe/ed ... ). It should be ( with maybe a few spaces here and there ) : #!/usr/bin/python2 replace it with : #!/usr/bin/python -- http://mail.python.org/mailman/listinfo/python-list