【问题标题】:Uwsgi fails with: Py_Initialize: Unable to get the locale encodingUwsgi 失败:Py_Initialize: Unable to get the locale encoding
【发布时间】:2012-09-28 00:42:28
【问题描述】:

我已经用 NGIX 和 django 配置了 uWSGI。

Uwsgi 失败并显示消息:

Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named encodings

【问题讨论】:

    标签: python django uwsgi


    【解决方案1】:

    发现问题。我已经为 python 和 python3 安装了 uwsgi 插件。使用了 Python3 插件,而我系统的默认解释器是 python 2.6。

    当我卸载 uwsgi python3 插件问题消失了。您还可以通过设置plugins 选项来指定用于特定应用程序的插件。

    【讨论】:

    猜你喜欢
    • 2022-12-01
    • 2020-11-03
    • 2022-12-26
    • 1970-01-01
    • 1970-01-01
    • 2021-12-14
    • 2013-01-09
    • 1970-01-01
    • 2022-12-27
    相关资源
    最近更新 更多