当我在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.
任何人都知道修复?
答案 0 :(得分:1)
如果编译 mod_wsgi ,则需要将configure脚本指向适当的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
祝你好运!