0

I have installed Python 2.7 but still kept Python 2.4. When I enter the command python, it runs python 2.4 and I want to keep it this way. But how to I set Django to use /usr/local/bin/python2.7 when it runs?

[EDIT] It is running on Apache with WSGI

user965363
  • 743
  • 2
  • 6
  • 11

1 Answers1

2

Since you use WSGI, you should compile WSGI with a compile-flag to choose which python-version to use:

./configure --with-python=/usr/local/bin/python2.7

See here: http://code.google.com/p/modwsgi/wiki/InstallationIssues#Multiple_Python_Versions

poplitea
  • 457
  • 1
  • 5
  • 16