python Noob - basic setup question / problem

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Mon Dec 4 17:01:02 EST 2006


Lilavivat wrote:

> /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"

Try to understand what "which" does. It says which file it calls if
you input the parameter into the shell. So if this happens

$ which python
/usr/local/bin/python
 
there's no point looking at /usr/bin/python.

What does "ls -l /usr/local/bin/python" say? I bet it's a dangling
symlink.

Regards,


Björn

-- 
BOFH excuse #255:

Standing room only on the bus.




More information about the Python-list mailing list