As per instructions in:

    https://pypi.python.org/pypi/mod_wsgi 
<https://pypi.python.org/pypi/mod_wsgi>

You need to ensure you have the 'dev' packages for Apache installed.

If you are running Debian or Ubuntu Linux with Apache 2.4 system packages, 
regardless of which Apache MPM is being used, you would need both:

    apache2
    apache2-dev

Note that if using Anaconda Python, after having installed mod_wsgi with pip, 
ensure you run:

    mod_wsgi-express module-config

to show the configuration you need to include in the system Apache if you 
intend manually configuring it for mod_wsgi, instead of using 'mod_wsgi-express 
start-server'.

This is necessary as Anaconda Python can require extra configuration directives 
to force load its shared library. That command should output the appropriate 
lines, although just check that the generated line for LoadFile directive 
actually points at a valid path. Seen one report where for Anaconda Python the 
path it generated was wrong and it had to be changed.

Graham

> On 5 May 2017, at 2:54 AM, Brian Lehman <[email protected]> wrote:
> 
> Good day. When I try to pip install mod_wsgi inside of an anaconda env called 
> test1.0 on an aws ec2 instance w/ ubuntu, I get the folowing error. Any 
> suggestions?
> 
> (test1.0) ubuntu$ python --version 
> 
> Python 3.6.1 :: Continuum Analytics, Inc.
> 
> (test1.0) ubuntu$ 
> 
> (test1.0) ubuntu$ 
> 
> (test1.0) ubuntu$ pip install mod_wsgi
> 
> Collecting mod_wsgi
> 
>   Using cached mod_wsgi-4.5.15.tar.gz
> 
>     Complete output from command python setup.py egg_info:
> 
>     Traceback (most recent call last):
> 
>       File "<string>", line 1, in <module>
> 
>       File "/tmp/pip-build-80walwu3/mod-wsgi/setup.py", line 164, in <module>
> 
>         'missing Apache httpd server packages.' % APXS)
> 
>     RuntimeError: The 'apxs' command appears not to be installed or is not 
> executable. Please check the list of prerequisites in the documentation for 
> this package and install any missing Apache httpd server packages.
> 
>     
>     ----------------------------------------
> 
> Command "python setup.py egg_info" failed with error code 1 in 
> /tmp/pip-build-80walwu3/mod-wsgi/
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi 
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to