yao
yao

Reputation: 13

Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/3.5.2 configured -- resuming normal operations

Django 1.11.7 I installed the python3.6 in the virtual environment. why is it Python/3.5.2 here? and

I cannot visit the web 127.0.0.1 (500 internal server error)

[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

[wsgi:error] [pid 61905:tid 140688926893824] [remote 127.0.0.1:33456] ImportError: No module named 'django'

how to solve above problem?

Help! thks!!!

Upvotes: 0

Views: 1042

Answers (1)

Graham Dumpleton
Graham Dumpleton

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

Related Questions