3

I tried to install mod_wsgi on my ubuntu server using the package manager, but noticed it depends on python 2.6. I'm using python 2.7, and would rather avoid installing 2.6...

Does mod_wsgi really depend on python 2.6, even if I intend to run only python 2.7 with it? If not, is there a way to install mod_wsgi having only python 2.7 installed?

1 Answer 1

4

I've confirmed that the mod_wsgi package (libapache-mod-wsgi) supports both python 2.6 and 2.7. Checking /usr/lib/apache2/modules revealed the existence of both mod_wsgi.so-2.6 and mod_wsgi.so-2.7.

To install the package without having to install python 2.6 I've used apt-get download libapache2-mod-wsgi to download the package without installing, and then dpkg --force-all -i libapache2-mod-wsgi to install it by itself (i.e., without python 2.6). It automatically symlinked to the mod_wsgi.so-2.7 module.

PS: This is apparently a well known bug.

2
  • I believe you mean libapache2-mod-wsgi (forgot the 2) May 17, 2012 at 6:47
  • You're right, updated. Sep 26, 2012 at 15:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .