我在哪里可以获得 apache2/module 的 mod_wsgi.so 文件?

Where can I get the mod_wsgi.so file for apache2/module?

过去 3 天我一直在尝试安装 mod_wsgi。在发现在 Windows 上这是一个更复杂的过程后,我决定用 Linux 来做,但我仍然没有想出如何将它安装到我的 Apache/Xampp 服务器中,因为我在 mod_wsgi 的最新版本中找不到任何 .so 文件。我的 httpd.conf 文件已经配置好并准备好加载模块,但出于显而易见的原因

sudo /opt/lampp/lampp start

产量

Starting XAMPP for Linux 5.6.30-0...
XAMPP: Starting Apache...fail.
httpd: Syntax error on line 523 of /opt/lampp/etc/httpd.conf: Syntax error
on line 11 of /opt/lampp/apache2/conf/httpd.conf: Cannot load /usr/lib/apache2/modules/mod_wsgi.so into server: /usr/lib/apache2/module 
/mod_wsgi.so: cannot open shared object file: No such file or directory
XAMPP: Starting MySQL...ok.

因为那里没有文件。

那么我实际上是从哪里获得上述文件的呢?我在旧网站上看到过其中一些,但由于兼容性问题或那些模块的功能和修复较少的版本,我不愿意使用它们。

编辑:我也尝试通过 pip install 命令安装它,但出现以下错误

Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-L3NBQK/mod-wsgi/setup.py", line 164, in <module>
        'missing Apache httpd server packages.' % APXS)
    RuntimeError: The 'apxs' command appears not to be installed or is not executable. Please check the list of prerequisites in the documentation for this package and install any missing Apache httpd server packages.

我只能相信是因为 Apache 安装在 xampp 包下,因此脚本无法找到 apache httpd 服务器包。

编辑 2:我正在研究 elementaryOS Loki,64 位架构,Python 2.7.12 (11-1),以及包含在 XAMPP v5.6.30[=15= 中的 Apache ]

Graham Dumpleton 本人在评论中做出了回答。 (多谢指教!)

Don't use XAMPP. My memory is that they do not provide the bits that allow you to build additional Apache modules to be used with it. Using the system Apache, system Python and system package for mod_wsgi is the easiest.