On Mon, Aug 16, 2010 at 6:38 PM, John Yeukhon Wong
<gokoproj...@gmail.com> wrote:
> I am running Debian Lenny, and I have 2.5.25 and 2.7 co-exists
> Which one would I get for django?
>
> Notice the last response from this link
> http://stackoverflow.com/questions/142764/how-do-i-upgrade-python-2-5-2-to-python-2-6rc2-on-ubuntu-linux-8-04
>
> This is the method that I used...

Depends how do you run it.

In the command line, if you use ./manage.py
it uses whatever is specified in the first line. e.g. #!/usr/local/bin/python2.5

If it says /usr/bin/env python it uses the same as you type "python"
in the shell.
See `which` and `whereis` command in *nix.
$ which python
/home/rho/projects/py26env1/bin/python

$ whereis python
python: /usr/bin/python2.5-config /usr/bin/python /usr/bin/python2.5
/etc/python /etc/python2.5 /usr/lib/python2.4 /usr/lib/python2.5
/usr/local/bin/python2.6 /usr/local/bin/python2.6-config
/usr/local/lib/python2.5 /usr/local/lib/python2.6
/usr/include/python2.4_d /usr/include/python2.5_d
/usr/include/python2.4 /usr/include/python2.5 /usr/share/python
/usr/share/python2.3-wxglade /usr/share/man/man1/python.1.gz

Most python scripts uses just "python", so it will run with whatever
points to python.
Django's manage.py uses #!/usr/bin/env python

For mod_wsgi, see this link:
http://code.google.com/p/modwsgi/wiki/InstallationIssues#Multiple%5FPython%5FVersions

Als installed python modules are not shared between multiple python versions.
So you need to be careful in which version do you install something. You should
have easy_install-2.5 easy-install-2.6 easy-install-2.7 and the .deb
also specifies
which version belongs.

Read about virtualenv, it makes easy to work with multiple
python/django versions.

Regards,

Rolando Espinoza La fuente
www.insophia.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to