The big picture is that I want Ubuntu server with nginx, uWGI, and Python 3 (virtualenv) to start some project.
I did follow recommendation that can be found on vari
Have you installed the correct python plugin for uwsgi?
http://packages.ubuntu.com/precise/uwsgi-plugin-python3
Then in config (your .ini file) put python3 as plugin instead of python like this:
[uwsgi]
plugins = python3
# Rest of your configuration...
Install Python 3:
sudo apt-get install python3
Install Python 3 headers to build uWSGI from source:
sudo apt-get install python3-dev
Create a Python 3 virtualenv in a venv
subdir of current dir (prepend the command with sudo
if current dir is privileged):
virtualenv -p python3 venv
Activate the venv to be the target for pip
(.
is a shortcut for source
):
. venv/bin/activate
Finally, install uWSGI (again, sudo
if in a privileged dir):
pip install uwsgi