uWSGI will not run in mixed Python environment in order to operate correctly with nginx and run Django app

我的未来我决定 提交于 2019-12-04 07:13:19

It might be the problem with your virtual environment. Try the following

rm -rf /root/.local/share/virtualenvs/my_site-gmmiTMID
virtualenv -p python3 /root/.local/share/virtualenvs/my_site-gmmiTMID
source /root/.local/share/virtualenvs/my_site-gmmiTMID/bin/activate
pip install -r requirements.txt

and in uwsgi conf try to change

virtualenv=/root/.local/share/virtualenvs/my_site-gmmiTMID

to

home=/root/.local/share/virtualenvs/my_site-gmmiTMID

Reference: http://uwsgi-docs.readthedocs.io/en/latest/Options.html#virtualenv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!