Gunicorn with Flask using wrong Python

前端 未结 4 624
[愿得一人]
[愿得一人] 2021-02-04 02:30

I\'m trying to bootstrap a Flask app on a Gunicorn server. By putting the two tools\' docs together, plus searching around on SO, this is what I have so far... but it\'s not qui

4条回答
  •  梦谈多话
    2021-02-04 02:45

    Gunicorn may be installed at multiple location in your system. It may be present in

    1. OS default Python Path
    2. Anaconda Python Path

    By default when you specify

    gunicorn -w 4 -b 127.0.0.1:5000 flaskApp:app

    You are referrng to operating system's default Python where in the same path flask package is not installed results in error. Better specify which gunicorn you are reffering to by providing proper path to gunicorn

    /home/sunil/anaconda2/bin/gunicorn -w 4 -b 127.0.0.1:5000 flaskApp:app

提交回复
热议问题