Reputation: 13
Django 1.11.7 I installed the python3.6 in the virtual environment. why is it Python/3.5.2 here? and
[wsgi:error] [pid 61905:tid 140688926893824] [remote 127.0.0.1:33456] mod_wsgi (pid=61905): Target WSGI script '/home/ubuntu/.../wsgi.py' cannot be loaded as Python module. [wsgi:error] [pid 61905:tid 140688926893824] [remote 127.0.0.1:33456] mod_wsgi (pid=61905): Exception occurred processing WSGI script '/home/ubuntu/.../wsgi.py'. [wsgi:error] [pid 61905:tid 140688926893824] [remote 127.0.0.1:33456] Traceback (most recent call last): [wsgi:error] [pid 61905:tid 140688926893824] [remote 127.0.0.1:33456] File "/home/ubuntu/.../wsgi.py", line 32, in [wsgi:error] [pid 61905:tid 140688926893824] [remote 127.0.0.1:33456] from django.core.wsgi import get_wsgi_application
how to solve above problem?
Help! thks!!!
Upvotes: 0
Views: 1042
Reputation: 58543
Read:
As is documented, you cannot point mod_wsgi compiled for one Python version at a Python virtual environment created from a different Python version.
Your mod_wsgi has to be compiled for the Python version you want to use.
Upvotes: 0