uwsgi + Flask + virtualenv ImportError: no module named site

前端 未结 8 660
感动是毒
感动是毒 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

    I had the similar issue before. My problem is that I have both python2.x and python3.x on my ubuntu system, and I want my project to run in a virtual env in which python3 environment is installed. How I resolved this issue:

    apt-get install python3-pip

    pip3 install uWSGI

    That's all.

提交回复
热议问题