热卖商品
新闻详情
uWSGI找不到python modu - 问答 - Python中文网
来自 : www.cnpython.com/qa/163...
发布时间:2021-03-25
uWSGI找不到python modu - 问答 - Python中文网 Python中文网 - 问答频道, 解决您学习工作中的Python难题和Bug Python常见问题登录 新用户注册 首 页问题库教程文章问答专家标签库课程中心 uWSGI找不到python modu
2021-03-24 15:56:09 发布
您现在位置:Python中文网/ 问答频道 /正文102410 3网友
男|程序猿一只,喜欢编程写python代码。我有一个python应用程序(Django+nginx+uWSGI)在云服务器上运行。在
但我打字时没能启动uWSGI
sudo uwsgi --uid www-data --gid www-data --emperor /etc/uwsgi/vassals
这是uWSGI文件的日志。(uwsgi.mySite.log)在
^{pr2}$似乎是uWSGI找不到python模块。在
nginx没有问题。在
这是我的uWSGI ini文件。在
[uwsgi]## variablesusername = rootprojectname = mySiteprojectdomain = mySiteDomainbase = /var/www/%(projectdomain)## configuid = www-datagid = www-datavhost = true# mastermaster = true# maximum number of processesprocesses = 10# respawn processes taking more than 20 secondsharakiri = 20# the socket (use the full path to be safe)socket = /dev/shm/%(projectname).sock# with appropriate permissions - *may* be neededchmod-socket = 775enable-threads = true# the base directorychdir = %(base)# Django\'s wsgi filemodule = %(projectname).wsgi# the virtualenvhome = /%(username)/.virtualenvs/%(projectname)# clear environment on exitvacuum = truemax-request = 5000daemonize = %(base)/logs/uwsgi.%(projectname).logpidfile = %(base)/logs/uwsgi.%(projectname).pid
我查过了”站点.py“位于/root/.virtualenvs/mySite/lib/python2.7
我也尝试将home(在uWSGI ini文件中)改为“/%(用户名)/.virtualenvs/%(projectname)/lib/python2.7”,但我得到了相同的错误。在
Virtualenv的系统路径还包括这些python路径。在
我不知道怎么了。谢谢你的帮助。在
0条回答目前没有回答
相关问题本文链接: http://harakiri.immuno-online.com/view-726256.html
发布于 : 2021-03-25
阅读(0)
最新动态
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25