ImportError:没有名为django.core.handlers.modpython的模块

ImportError:没有名为django.core.handlers.modpython的模块,django,Django,Django是通过Ubuntu上的apt ger安装的 sudo apt-get install python-django 需要新功能的开发版本 已通过删除以前的安装 sudo apt-get purge python-django 在本文之后重新安装Django 尚未对httpd.conf文件进行任何更改 获取此错误 MOD_PYTHON ERROR PathInfo: '' Phase: 'PythonHandler' Handler:

Django是通过Ubuntu上的apt ger安装的

sudo apt-get install python-django
需要新功能的开发版本

已通过删除以前的安装

sudo apt-get purge python-django
在本文之后重新安装Django

尚未对httpd.conf文件进行任何更改

获取此错误

MOD_PYTHON ERROR

PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'django.core.handlers.modpython'

Traceback (most recent call last):

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1202, in _process_target
    module = import_module(module_name, path=path)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 304, in import_module
    return __import__(module_name, {}, {}, ['*'])

ImportError: No module named django.core.handlers.modpython
少量测试

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> import django.core.handlers.modpython 
>>> 

这在django目录中起作用

 python setup.py install
 python setup.py install