How can I fix Python version mismatch of Apache mod_wsgi?

点点圈 提交于 2020-01-01 15:38:21

问题


I am getting this error:

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

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?


回答1:


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




回答2:


Normally minor versions don't require a rebuild, but in this case, you may need to rebuild mod_wsgi. You might need uninstall and reinstall the package. I think the person who recommended that you rebuild mod_python was confused; this was the package that was deprecated in favor of mod_wsgi.



来源:https://stackoverflow.com/questions/11454264/how-can-i-fix-python-version-mismatch-of-apache-mod-wsgi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!