Your problem is solved or not? On Fri, Jul 8, 2011 at 12:39 AM, Phil <phil...@gmail.com> wrote: > > Thanks for advice everyone. > > I had installed python2.7 the normal way using "wget > http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2" > > I am reading up a bit more on it and will give it another go hopefully > with more success. > > Thanks again. > > > On Jul 4, 10:15 am, Tim Diggins <tim.digg...@gmail.com> wrote: > > I think it helps you to use virtualenv when using django on a machine > > with multiple pythons (it's a great tool anyway, but this is an extra > > reason). > > > > the trick is to use virtualenv's -p argument when creating the > > environment, to specify the path to the python executable. > > so, in summary: > > > > 1) install virtualenv[1] (in any python - whatever one works on the > > command line - maybe by installing the python-virtualenv package on > > your packaging system. Depending on your packaging system, you may > > need to then upgrade it (using pip, which virtualenv automatically > > installs: pip install --upgrade virtualenv) > > 2) create a virtualenv > > virtualenv -p /path/to/python2.7 /some/new/path/for/env > > 3) activate the virtualenv in your shell > > /some/new/path/for/env/bin/activate > > 4) install django using that environment > > (it will pick up the python in the shell - you can also I think use > > pip with a subversion repos[2], but I haven't done that). > > [1]http://pypi.python.org/pypi/virtualenv > > [2]http://www.pip-installer.org/en/latest/requirement-format.html > > > > On Jul 4, 9:26 am, bruno desthuilliers <bruno.desthuilli...@gmail.com> > > wrote: > > > > > > > > > > > > > > > > > On Jul 3, 5:46 pm, Phil <phil...@gmail.com> wrote: > > > > > > Thanks for all the comments everyone, it's a great help. > > > > > > Yes I have more than one python installed, when I got the server it > > > > had python2.4 and I read the latest django stopped supporting 2.4 so I > > > > installed python2.7 after reading this(also it said not to delete > > > > python2.4 because 'yum' needs it to survive). > > > > > Yeps, uninstalling your system's Python is usually a *very* bad idea > > > (unless you want a broken system, of course). > > > > > > But I had already > > > > installed django when I just had 2.4. So I reinstalled django after > > > > installing python2.7, but it is still obviously pointing to wrong > > > > python version. > > > > Is it now just a matter of me changing the top line in my 'django- > > > > admin.py' file to point to correct python version, something like?... > > > > > > #! /path/to/python2.7/env python2.7 > > > > > > If yes, how do I find correct path to python2.7 > > > > > how did you install python 2.7 ? > > > > > Also and FWIW, this has nothing to do with django so this discussion > > > would be better on comp.lang.python > > > > > HTH > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@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. >
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.