【问题标题】:AWS Elastic Beanstalk mod_wsgi "compiled for" version different than "runtime" versionAWS Elastic Beanstalk mod_wsgi“编译为”版本不同于“运行时”版本
【发布时间】:2016-11-24 11:38:10
【问题描述】:

我在 AWS Elastic Beanstalk 上运行 Pyramid 应用程序时看到以下错误。

[Thu Jul 21 03:45:20.629134 2016] [:warn] [pid 5232] mod_wsgi: Compiled for Python/2.7.9.
[Thu Jul 21 03:45:20.629139 2016] [:warn] [pid 5232] mod_wsgi: Runtime using Python/2.7.10.

有人知道修复方法吗?

【问题讨论】:

    标签: python amazon-web-services amazon-elastic-beanstalk mod-wsgi


    【解决方案1】:

    如果您编译mod_wsgi,您需要将配置脚本指向适当的Python 二进制文件。例如:

    wget -q "https://github.com/GrahamDumpleton/mod_wsgi/archive/4.4.21.tar.gz"
    tar -xzf '4.4.21.tar.gz'
    cd ./mod_wsgi-4.4.21
    ./configure --with-python=/usr/local/bin/python3.5
    make
    make install
    

    祝你好运!

    【讨论】:

    • 我自己什么都没做。这一切都是由弹性豆茎设置的。
    • 如果您想要更精细的控制,您可以使用弹性 beanstalk docker 选项,或向 AWS 报告不一致情况。
    猜你喜欢
    • 2016-11-06
    • 2020-08-16
    • 2020-11-07
    • 2016-10-19
    • 2020-01-10
    • 2020-04-07
    • 2014-04-16
    • 2019-05-28
    • 2015-03-05
    相关资源
    最近更新 更多