使用'pip'使用插件安装uwsgi

Tom*_*Tom 7 python pip uwsgi

我用uwsgi安装了pip install uwsgi.

当我运行uwsgi时,我遇到了一些错误.我正在运行的命令是uwsgi --master --emperor /etc/uwsgi/apps-enabled --die-on-term --uid www-data --gid www-data.

看来我错过了http和python插件:

[uWSGI] getting INI configuration from component_tracking_test.ini
open("./http_plugin.so"): No such file or directory [core/utils.c line 3347]
!!! UNABLE to load uWSGI plugin: ./http_plugin.so: cannot open shared object file: No such file or directory !!!
open("./python_plugin.so"): No such file or directory [core/utils.c line 3347]
!!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!!
[emperor] removed uwsgi instance component_tracking_test.ini

如果我通过pip安装了uwsgi,如何安装所需的插件?

yve*_*ess 1

当我将“--binary-path /usr/local/bin/uwsgi”(更改 wsgi bin 的路径)添加到命令中时,错误消失了。

来自纪录片

二进制路径参数:字符串

强制二进制路径。

如果系统路径中没有uWSGI,您可以使用此选项强制其路径,以
允许重新加载系统和Emperor轻松找到要执行的二进制文件。