Apache配置 - 多个版本的Python [英] Apache Config - Multiple python versions

查看:305
本文介绍了Apache配置 - 多个版本的Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有蟒蛇在我的箱子了几个版本。我的应用程序使用它在/ usr / local / bin目录/蟒蟒发现2.7。阿帕奇好像是用在/ usr / bin中/ Python的早期版本。我如何配置Apache使用Python更高版本我的应用程序?

I have a couple versions of python on my box. My app uses python 2.7 which is found in /usr/local/bin/python. Apache seems to be using an earlier version in /usr/bin/python. How can I configure Apache to use a later version of Python for my app?

推荐答案

您不能。无论是重建对的mod_wsgi的Python的其他版本,或在您的CGI脚本改变家当线到其他可执行文件。

You can't. Either rebuild mod_wsgi against the other version of Python, or change the shebang line in your CGI scripts to the other executable.

这篇关于Apache配置 - 多个版本的Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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