4000-520-616
欢迎来到免疫在线!(蚂蚁淘生物旗下平台)  请登录 |  免费注册 |  询价篮
主营:原厂直采,平行进口,授权代理(蚂蚁淘为您服务)
咨询热线电话
4000-520-616
当前位置: 首页 > 新闻动态 >
热卖商品
新闻详情
uWSGI找不到python modu - 问答 - Python中文网
来自 : www.cnpython.com/qa/163... 发布时间:2021-03-25
uWSGI找不到python modu - 问答 - Python中文网 Python中文网 - 问答频道, 解决您学习工作中的Python难题和Bug Python常见问题登录 新用户注册 \"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)
公司介绍
品牌分类
联络我们
服务热线:4000-520-616
(限工作日9:00-18:00)
QQ :1570468124
手机:18915418616
官网:http://