uwsgi + Flask + virtualenv ImportError: no module named site

前端 未结 8 671
感动是毒
感动是毒 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 07:50

    If your virtual environment is running on Python3 then you must install uwsgi using pip3, not pip otherwise, version mismatch will create this import problem

    pip uninstall uwsgi    
    pip3 install uwsgi
    

提交回复
热议问题