Changing Python version

software development

#1

Hi,
as I understand, by default python 2.3 is used.
I’ve added django application, which requires python 2.4 to run. In Django sources I see such path to python:
#!/usr/bin/env python

As I understand, I need to set this variable to /usr/bin/python2.4.
But after
export python=/usr/bin/python2.4
and
/usr/bin/env python=/usr/bin/python2.4
I see such line in
/usr/bin/env, but
$/usr/bin/env python command runs python 2.3 (not 2.4). How can I set this variable correctly?


#2

Uh… after reading the documentation, it appears that the shebang should be

#!/usr/bin/env /usr/bin/python2.4From man pages:

SYNTAX env [OPTION]... [NAME=VALUE]... [COMMAND [ARGS]...]Your only argument is “COMMAND”

:cool: openvein.org -//- One-time [color=#6600CC]$50.00 discount[/color] on [color=#0000CC]DreamHost[/color] plans: Use ATROPOS7