在ubuntu上使用python 2.7安装mod_wsgi

我尝试使用包管理器在我的ubuntu服务器上安装mod_wsgi,但注意到它依赖于 python 2.6.我正在使用python 2.7,宁愿避免安装2.6 …

mod_wsgi真的依赖于python 2.6,即使我打算只运行python 2.7吗?如果没有,有没有办法安装只安装了python 2.7的mod_wsgi?

我已经确认mod_wsgi包(libapache-mod-wsgi)支持python 2.6和2.7.检查/usr/lib / apache2 / modules显示存在mod_wsgi.so-2.6和mod_wsgi.so-2.7.

要安装软件包而不必安装python 2.6我已经使用apt-get下载libapache2-mod-wsgi下载软件包而不安装,然后dpkg –force-all -i libapache2-mod-wsgi自行安装(即没有python 2.6).它会自动符号链接到mod_wsgi.so-2.7模块.

PS:这显然是well known bug.

相关文章

文章浏览阅读2.3k次,点赞4次,收藏22次。最近安装了CARLA预...
文章浏览阅读6.3k次,点赞5次,收藏15次。在清华镜像中下载U...
文章浏览阅读5k次。linux环境, python3.7.问题描述: 安装...
文章浏览阅读4.2k次,点赞4次,收藏17次。要安装这个 standa...
文章浏览阅读894次,点赞51次,收藏31次。在安卓使用vscode主...