Nginx & uWSGI: ImportError: No module named site
The reason why it wasn't working is because I installed uwsgi
using the regular pip
command. Since I have both Python 2 & 3 in the machine, I need to install uwsgi
using pip3
.
The command I ran: pip3 install uwsgi
The reason why you're getting this error is because the modules (site, os, etc) couldn't be found in the virtual environment specified in the home directive. Using the right version of pip may have worked for you, but only because it fixes your virtualenv issue.