Skip to content
Advertisement

Unable to stop apache using system version of python 2.7.6 instead of virtualenv version

I have recompiled python2.7.11 using:

JavaScript

I have installed django and all the dependencies checking that the pip is located in my new python version

I uninstalled the packaged version of mod_wsgi and I have linked mod_wsgi to the new version of python by:

JavaScript

When I restart apache both 2.7.6 and 2.7.11 seem to be started:

JavaScript

My httpd.conf looks like:

JavaScript

I am able to run the “hello world” wsgi application even though both versions of python seem to be used. However, when I use the django app I end up with an ImportError that seems to be related to the multiple versions.

JavaScript

Reply to @Graham: The make command fails with following:

JavaScript

Advertisement

Answer

Try:

JavaScript

The LD_RUN_PATH environment variable when building embeds the directory path containing the correct library into the lookup path for the mod_wsgi.so file.

Advertisement