Cannot get gunicorn to use Python 3
问题 I have Ubuntu+NGINX+Gunicorn with a virtual environment that works with Python 3 setup but my Flask app still runs as 2.7.6. I have methodically followed the instructions but I cannot find a resolution. Gunicorn config file [program:app-server] command = gunicorn app:app -b localhost:8000 directory = /home/www/app-server user = appuser Project directory structure app-server ----app.py ----venv (virtual environment) 回答1: Gunicorn is itself a Python application; the Gunicorn PPA only publishes