How can I fix python version mismatch of apache mod wsgi

July 6, 2021 . 1 MIN READ

I get this error

 

[Thu Jul 12 14:31:36 2012] [error] python_init: Python version mismatch, expected ‘2.6.7’, found ‘2.6.8’.

 

 

 

Solution

apt-get remove libapache2-mod-python libapache2-mod-wsgi $ apt-get build-dep libapache2-mod-python libapache2-mod-wsgi

 

 

http://ubuntuforums.org/showthread.php?t=2088282

 

  1. Uninstall all wsgi related packages.
    2. Get the source package with: apt-get source mod-wsgi
    3. Install the build dependencies with: sudo apt-get build-dep mod-wsgi
    4. Move into the source package dir and build the binary packages: debuildThen after a while it will create a bunch of packages, which are identical to the packages form the repositories, except that they are compiled on your machine. Try installing them and see what happens. If it still doesn’t work, you have a real problem…

Leave a Reply

Your email address will not be published. Required fields are marked *