如何将 mod_wsgi 安装到 Ubuntu 中的特定 python 版本?

How to install mod_wsgi to specific python version in Ubuntu?

我正在尝试在我的 Ubuntu 服务器的 apache 中安装 mod_wsgi module,但我需要它专门用于 [=15= 中的 2.7.13 版本] 无论什么原因,每次我 运行 sudo apt-get install libapache2-mod-wsgi 都会为 Python 2.7.[=16 安装 mod_wsgi module =] 做这一切是因为我 运行 正在进入一个奇怪的 python 版本 issue.When 我 运行 我的服务器中的一个 python 脚本终端它与版本 2.7.13.In Apache 完美配合,但是脚本没有 work.I 设法弄清楚我的 Apache 是 运行ning 版本 2.7.12 我认为这是 issue.Still 还不知道如何更改 apache python 版本。

最终想通了 out.The 问题是我的服务器中安装了 Python 2.7 的两个版本(2.7.12 和 2.7.13),因此其中一个的定义与 other.Solved 当我从服务器上完全删除 Python 2.7.13 时。