#!/usr/bin/env python > 2.4?

rh0dium steven.klass at gmail.com
Tue Mar 20 19:27:22 CET 2007


> Python usually installs so the latest version gets linked as
> /usr/bin/python. HTere's no need to bind your scripts to a particular
> version.
>
> regards

True - but that entirely depends on your path.  Example:

Redhat (RHEL3) ships with python2.3 in /usr/bin
Adding an 2.5 version to /usr/local/bin

set PATH=/usr/local/bin:/usr/bin

"python" - will use 2.5

Conversely if you:
set PATH=/usr/bin:/usr/local/bin

"python" - will use 2.3

but if I wanted to ensure I was using 2.5 I would simply type
python2.5  I want to ensure that the python version I am using is at
lease 2.4






More information about the Python-list mailing list