use pip install mod-wsgi insted of pip install mod_wsgi as it worked for me source: https://pypi.org/project/mod-wsgi/