uwsgi + Flask + virtualenv ImportError: no module named site

前端 未结 8 684
感动是毒
感动是毒 2021-02-05 07:37

(Other posts on SO are similar, but none have the specific combination of uwsgi + Flask + virtualenv) (This one is closest)

I installed uwsgi via apt-get. I also tried

8条回答
  •  孤独总比滥情好
    2021-02-05 08:08

    See the answer from @JRajan first.

    If you're sure you just want to suppress the error and not actually solve the underlying issue, you should add --no-site to your command or no-site=true to your uwsgi.ini file.

提交回复
热议问题