1👍
If the mod_wsgi.so is finding the wrong library when checking with tool -L, you need to recompile it from source code again doing:
make distclean
./configure --disable-framework --with-python=/Library/Frameworks/EPD64.framework/Versions/7.3/bin/python
make
sudo make install
The key is the ‘–disable-framework’. Some Python distros are broken and don’t work properly when trying to link them as a MacOS X style framework rather that library. That option forces it to use UNIX style -L/-l library linking.
Make sure you then do not set either WSGIPythonHome or WSGIPythonPath.
Using SetEnv also will not do anything as it doesn’t set process level environment variables.
With those changes, then go back and deploy Django by following the mod_wsgi instructions in the Django docs site.
Source:stackexchange.com