Python on a Linux distribution usually comes as two packages. The first is the binary runtime package. It has what you need to run Python scripts. It doesn't though have what you need if you want to install additional Python packages which have a C extension component. For that you need to also install the 'dev' variant of the Python package.
The name of this depends on your distro. For Debian based distros, it is the same name as the Python runtime package, but with '-dev' appended. For RHEL type distros, you append '-devel'. Requirements are listed in: * https://pypi.org/project/mod_wsgi/ <https://pypi.org/project/mod_wsgi/> but since the Python package names vary a lot, it doesn't enumerate the actual package names for runtime and dev. So work out what the name of the system Python package is, and then install the dev variant of that package. Graham > On 27 Apr 2018, at 1:30 am, Gnarlodious <[email protected]> wrote: > > Trying to install mod_wsgi on Raspberri Pi Stretch: > > python3 -m pip install mod_wsgi > but all I get is error: > > src/server/wsgi_python.h:24:20: fatal error: Python.h: No such file or > directory > #include <Python.h> > ^ > compilation terminated. > error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 > Same thing happens when manually compiling with CMMI. Tried every solution I > could find on the internet. Help! > > > -- > 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.
