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

标签 python pip uwsgi

我使用 pip install uwsgi 安装了 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,我该如何安装所需的插件?

最佳答案

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

来自 docu

binary-path Argument: string

Force binary path.

If you do not have uWSGI in the system path you can force its path with this option to
permit the reloading system and the Emperor to easily find the binary to execute.

关于python - 使用 'pip' 使用插件安装 uwsgi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16406944/

相关文章:

sockets - 即使我将 chmod-socket 设置为 664 : works on one machine but not the other,uwsgi 也会出现权限被拒绝错误

python - 无法使用 uWSGI 和 NGINX 导入名称 'app'

python - 像素点变换的性能

python - 如何在Python中将numpy转换为float

Python 3 没有升级 pip。我是否链接了错误的目录?

python - 在我的 Mac 上以 root 身份运行 pip 时出现 "Permission Denied"

python - 如何在Python的进程之间共享一个非常大的字典

python - 根据第一个数组的条件查找第二个数组中的值。最有效的方法是什么?

virtualenv - 使用 pip 到源代码安装 Python 包不会创建符号链接(symbolic link)

python - Flask 应用程序回溯未显示在服务器日志中