1👍
✅
You’re not activating your virtualenv inside the wsgi file, so Python knows nothing about it.
0👍
With the version of mod_wsgi you are using, you could have just said:
WSGIDaemonProcess project python-home=/home/user/venv python-path=/home/user/project
That is, use python-home option to WSGIDaemonProcess to specify the sys.prefix value of the Python virtual environment.
No need to fiddle with sys.path in the WSGI script file.
Source:stackexchange.com