At the time of this writing.. download mod_python-3.3.1.tgz

./configure –with-apxs=/usr/local/apache2/bin/apxs
make
make install

You need to pass the PYTHONPATH to apache..

AddHandler python-program .py PythonHandler TileCache.Service PythonOption TileCacheConfig /usr/local/apache2/htdocs/tilecache/tilecache.cfg PythonDebug On PythonPath “sys.path + ['/usr/local/apache2/htdocs/tilecache/']”

In your bash shells, you could also check the PYTHONPATH…

[root@rupert-linux views]# python
Python 2.3.4 (#1, Mar 10 2006, 06:12:09)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.path
['', '/usr/lib/python23.zip', '/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', '/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages', '/usr/lib/python2.3/site-packages/gtk-2.0']
>>>