[mod_python] Wrong version of Python is picked up by mod_python

Barry Warsaw barry at python.org
Sat Jan 10 13:50:07 EST 2004


On Fri, 2004-01-09 at 20:41, Kevin Ballard wrote:
> You could remove the old version?
> 
> Alternately, there's an option to ./configure for building mod_python 
> that lets you specify the exact path to python in case you have 
> multiple copies. That might be what you're looking for.

It may not help.  mod_python will always pick the first Python on your
$PATH, even when you use --with-python.  I've reported this before and
seen the behavior on every Linux box I've built on.  This with Apache
2.0.48.

The trick is to hack your $PATH in Apache's bin/envvars script so that
it is sure to pick up the Python executable you want.

-Barry




More information about the Mod_python mailing list