我在虚拟环境(env):~ ./manage.py runserver
给了我这个:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
然后内部服务器错误是这样的:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 47, in load_middleware
raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
ImproperlyConfigured: Error importing middleware django.middleware.clickjacking: "No module named clickjacking"
mod_wsgi (pid=1209): Exception occurred processing WSGI script '/home/momnet/wsgi.py'.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
self.load_middleware()
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 47, in load_middleware
raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
ImproperlyConfigured: Error importing middleware django.middleware.clickjacking: "No module named clickjacking"
网站处于离线状态。关于可能导致这种情况的任何想法?