如何解决阿帕奇mod_wsgi的Python的版本不匹配? [英] How can I fix Python version mismatch of Apache mod_wsgi?

查看:443
本文介绍了如何解决阿帕奇mod_wsgi的Python的版本不匹配?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个错误:

[Thu Jul 12 14:31:36 2012] [error] python_init: Python version mismatch, expected '2.6.7', found '2.6.8'.

试图启动Apache服务器。在一个问题,有人建议重建mod_python的为Python的正确版本。但是mod_python的不支持了。那么,如何可以使用Python 2.7或2.6的mod_wsgi并修复错误?

while trying to start Apache server. In a question, someone advised to rebuild mod_python for the correct version of Python. But mod_python is not supported anymore. So how can I use Python 2.7 or 2.6 with mod_wsgi and fix that error?

推荐答案

最后我删除了mod_python模块从python.conf。并重建mod_wsgi的。现在,它正在工作。谢谢你。

Finally I removed mod_python modules from python.conf. And rebuilt mod_wsgi. Now it is working. Thanks.

这篇关于如何解决阿帕奇mod_wsgi的Python的版本不匹配?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆