[2.4.3/Newbie] Web script doesn't run

Chris Angelico rosuav at gmail.com
Mon Feb 11 06:42:50 EST 2013


On Mon, Feb 11, 2013 at 10:36 PM, Gilles <nospam at nospam.com> wrote:
> On Mon, 11 Feb 2013 22:30:45 +1100, Chris Angelico <rosuav at gmail.com>
> wrote:
>>Try running python2.6 -V
>>
>>Your shebang line says that it's looking for a program named
>>"python2.6", which is quite probably not the same as the one named
>>just "python".
>
> Indeed, they have two versions of Python installed:
>
> # python2.6 -V
> Python 2.6.4
>
> # python -V
> Python 2.4.3
>
> I'll make sure to use 2.6.

It's entirely possible you have a third Python, a 3.x, as well.
Different Pythons coexist quite happily on a system.

Anyway, seems your issue's sorted out. Yay!

ChrisA



More information about the Python-list mailing list