Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 4 down vote accepted

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 and

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 module.

PS: This is apparently a well known bug.

share|improve this answer
I believe you mean libapache2-mod-wsgi (forgot the 2) – fastmultiplication May 17 '12 at 6:47
You're right, updated. – Filipe Correia Sep 26 '12 at 15:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.