Pip fatal error python h no such file or directory

src/server/wsgi_python.h:24:20: fatal error: Python.h: No such file or directory For some reason when I try to install mod_wsgi via pip AND by downloading source I get this error.

Thanks for the tip on virtualenv’s — I’ll look into it.

All the uninstalls told me that it wasn’t installed. I know it was installed in the previous python install, but I’m guessing that got removed from the system in the upgrade. There are some files I found using locate (subset below) — would that be causing issues?

/usr/lib/apache2/modules/mod_wsgi.so
/usr/lib/apache2/modules/mod_wsgi.so-3.5
/usr/local/bin/mod_wsgi-apxs
/usr/local/bin/mod_wsgi-express
/usr/local/lib/python3.4/dist-packages/mod_wsgi
... bunch more files in /usr/local/lib/python3.4/dist-packages/mod_wsgi

I’m not sure it’s relevant, but running mod_wsgi-express start-server gives me the following errors.

Traceback (most recent call last):
  File "/usr/local/bin/mod_wsgi-express", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2927, in <module>
    @_call_aside
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2913, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 635, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 829, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'mod-wsgi==4.4.21' distribution was not found and is required by the application

As for the pip install -v, the output is below.

$sudo python3 -m pip install -v mod_wsgi
The directory '/home/{user_name}/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/{user_name}/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting mod_wsgi
  1 location(s) to search for versions of mod-wsgi:
  * https://pypi.python.org/simple/mod-wsgi/
  Getting page https://pypi.python.org/simple/mod-wsgi/
  Looking up "https://pypi.python.org/simple/mod-wsgi/" in the cache
  No cache entry available
  Starting new HTTPS connection (1): pypi.python.org
  "GET /simple/mod-wsgi/ HTTP/1.1" 200 3441
  Updating cache with response from "https://pypi.python.org/simple/mod-wsgi/"
  Caching b/c date exists and max-age > 0
  Analyzing links from page https://pypi.python.org/simple/mod-wsgi/
    Found link https://pypi.python.org/packages/04/f4/de08a9194c20ec824de9ee2df8f0f740f11d91368b847880fd4c1756f9aa/mod_wsgi-4.4.5.tar.gz#md5=655bba1a5b4f3e51268ac52c8a43fffc (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.5
    Found link https://pypi.python.org/packages/12/97/dee37715e1f65dc0ec323a367ffae1954db502784a3fb60ee42c271e0472/mod_wsgi-4.4.19.tar.gz#md5=9f3f511e134b8066231b37ccf75f074e (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.19
    Found link https://pypi.python.org/packages/14/4f/57cbcb296f1685d86c7c1f3d1b707da3c1437b6bdcac852fe2f49a6724a2/mod_wsgi-4.2.1.tar.gz#md5=27c717a2301814ca6e8a2458a346b3f3 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.2.1
    Found link https://pypi.python.org/packages/15/8a/797c02290e906b11d15f1e6732e7699774c8dd1b50a2133a280facb31eda/mod_wsgi-4.4.15.tar.gz#md5=e3b621c1b70a3c1874e8decf31fd20e6 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.15
    Found link https://pypi.python.org/packages/16/0d/87c79b93f83c5d7180bda04c5072eca9568c99aee40f938ec7e45ef258ea/mod_wsgi-4.2.6.tar.gz#md5=288645d13098e188fcf5aa4e436ec817 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.2.6
    Found link https://pypi.python.org/packages/22/54/2f74741d3f0ea25973ab6b5dbbba8fc6c534973cd77592a6c9f8532e9220/mod_wsgi-4.2.4.tar.gz#md5=459ac1fd5e380ade36c700a910936c80 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.2.4
    Found link https://pypi.python.org/packages/24/ea/576b0f5cfd4efdc2b94742b1d82d87f2c48db3db879d4fc7b10ee52db1d7/mod_wsgi-4.1.2.tar.gz#md5=72cc621bb238269d2a3357ee5803ec9e (from https://pypi.python.org/simple/mod-wsgi/), version: 4.1.2
    Found link https://pypi.python.org/packages/26/bd/83ad180f9214ec05356fde48a8314de6e6f36c68ee855a9b0551c9fb1c96/mod_wsgi-4.4.1.tar.gz#md5=ae0c700eddaa85bc1d15e2cfbe2dd371 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.1
    Found link https://pypi.python.org/packages/28/21/a273cf7bdcb8136fd60eea196477cd04219e5020e72f92a2b11f8eb356a1/mod_wsgi-4.2.7.tar.gz#md5=cc0c4de690f840c8b92373bc9132855f (from https://pypi.python.org/simple/mod-wsgi/), version: 4.2.7
    Found link https://pypi.python.org/packages/37/b5/7cc22dc8e36bb1dfa3798180f6081af5f0536e1a7f498e30073bf3977097/mod_wsgi-4.5.0.tar.gz#md5=3a4c4e97b12dbe6b48b4f9ef84cb897c (from https://pypi.python.org/simple/mod-wsgi/), version: 4.5.0
    Found link https://pypi.python.org/packages/37/ed/413a1391bc42c5f571096c148added34b1423499bbb17a3c8229945795a7/mod_wsgi-4.4.3.tar.gz#md5=7bc1d82c4998db45625d1e99b37b8f7b (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.3
    Found link https://pypi.python.org/packages/38/92/194646e7423e4f17b1d415b8cdadfbd7530dc8d71894e72e541f5f5239f7/mod_wsgi-4.4.11.tar.gz#md5=08205d8bd38b3831336b60db9907e82d (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.11
    Found link https://pypi.python.org/packages/3f/ae/40d952a62a58522619ec9352ca5b749eb4583a283f81ae8b519ea2f2a20b/mod_wsgi-4.4.21.tar.gz#md5=7017e68916414cd4a432fa70520a8ae8 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.21
    Found link https://pypi.python.org/packages/3f/f1/3dc05f226a59ff1590ecf609d2187af0ba7ef1e6da0565e2c0708381fe04/mod_wsgi-4.4.17.tar.gz#md5=19e32021e1549dc7147de3a6ecd5484d (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.17
    Found link https://pypi.python.org/packages/47/60/ecce835f4336809f165f27ca76276168b08372b1f8ef152ab1fbdbd137e1/mod_wsgi-4.4.8.tar.gz#md5=a2f57b3c180728ccb6899f62c2eb68b9 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.8
    Found link https://pypi.python.org/packages/4b/ce/75685baecf3d4a3156662400e11c68bf2fe86c4b134a95184f64fcf2a999/mod_wsgi-4.4.6.tar.gz#md5=effcba29f2faeeb6347f4486f73caec3 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.6
    Found link https://pypi.python.org/packages/4c/52/475e78379fcbcc7066e8878f8dbccf0e4fcbb2d9543b93c962dc29991ebf/mod_wsgi-4.4.23.tar.gz#md5=504adc6c8e717343f9990c20f843f365 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.23
    Found link https://pypi.python.org/packages/4d/8b/26818cb26d003f0c1346bb5614fd1c3745a0e3c90dd4258d080786dea2e8/mod_wsgi-4.4.22.tar.gz#md5=800c5e214d16dea251c048ec5d7b5bd4 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.22
    Found link https://pypi.python.org/packages/4f/28/53b15dc4d45a6c85f86c4f6499b8372f0d5cf6a43dbac4753c9deef2d89a/mod_wsgi-4.1.0.tar.gz#md5=bdf315a9ce49d8e9ba423c05f9159359 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.1.0
    Found link https://pypi.python.org/packages/4f/37/f2b6882b6bd8e0f52450570c3155f934052b14784ed3a0a02160c2169172/mod_wsgi-4.4.7.tar.gz#md5=7e3944028f5b02ed12a24ea4fc6cced6 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.7
    Found link https://pypi.python.org/packages/50/2a/16aba864ef922ee2cddc00367a1f8fdcae9fc017acbf510c16ba46b7181f/mod_wsgi-4.2.5.tar.gz#md5=ae72f7e7c0eabd1561c817a9ef590e32 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.2.5
    Found link https://pypi.python.org/packages/50/ff/a3cc89832604566925c0efb4d7661dbd072c23cdb0b4d2adff4af8af2908/mod_wsgi-4.5.4.tar.gz#md5=57ac1e4492fce17348da8945cae83a93 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.5.4
    Found link https://pypi.python.org/packages/53/9a/57eea19851fc30aa9a8c9462168670025148a16e246a51a195e1a6565729/mod_wsgi-4.4.2.tar.gz#md5=f771dc0370f25ca29f6b526e6dbc7c04 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.2
    Found link https://pypi.python.org/packages/58/00/5d46bd1ae87fbf530d81c0b2fa515750e0eaa7c9a85f168c2bd81b785b85/mod_wsgi-4.3.1.tar.gz#md5=6c5df2d820aee2e1a4bfdfc7266195b0 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.3.1
    Found link https://pypi.python.org/packages/74/db/22f1893d618df456e1fa7e62b5f88ae6b88c7c0f60dbb29d5b33e85f2987/mod_wsgi-4.1.3.tar.gz#md5=f33fad5a9bd78fc8912a8864210ccedd (from https://pypi.python.org/simple/mod-wsgi/), version: 4.1.3
    Found link https://pypi.python.org/packages/76/8f/fd38ca63371f680e2238fb8cf5ba93e76241449ecd1d4c2fd638a68ee193/mod_wsgi-4.2.3.tar.gz#md5=1837b45e0db8ac8483375f8c196c622e (from https://pypi.python.org/simple/mod-wsgi/), version: 4.2.3
    Found link https://pypi.python.org/packages/88/bd/3fa573dad32892f4fc24749bf008518439e9d7d23f539d75122d2f8d1479/mod_wsgi-4.5.2.tar.gz#md5=3873cd2ed72200b5227e356ff28cdd21 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.5.2
    Found link https://pypi.python.org/packages/8c/c6/78be90bbb32ac17e2a5f617286efab2aa3cb736e8dab6ae5d33cae0c4a83/mod_wsgi-4.1.1.tar.gz#md5=1b4812a7da2f0842f2dbad9d95457e18 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.1.1
    Found link https://pypi.python.org/packages/8d/54/5d4a0de7d983813f8ce5d14283a65cf3ee828f436886e834bd551d6d5033/mod_wsgi-4.4.16.tar.gz#md5=8c53dfd32fdc8bc8d58ddc3c77e222ac (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.16
    Found link https://pypi.python.org/packages/92/28/505a72b6eb11ff2604cf1f2b4e84e24193a9c469d68d8f259b12c3be70bb/mod_wsgi-4.5.1.tar.gz#md5=0fec62b2a7265d4d1966d719cb0dec92 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.5.1
    Found link https://pypi.python.org/packages/9d/44/5bfdded0360e244f7a2d0c999384a1ef2b2a217eddbdfa9d3404f474319d/mod_wsgi-4.4.12.tar.gz#md5=23ea027da9dfe68ecd28f1a53855a30c (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.12
    Found link https://pypi.python.org/packages/ae/d4/2ddb85ae4cf5653287ee21016933a3fed55955b27dfc8f4188a904fde0b0/mod_wsgi-4.4.18.tar.gz#md5=116942dae6e8c350de9c1c374e41b4f0 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.18
    Found link https://pypi.python.org/packages/c1/ef/96a118725dab37599d07a8397920717d6bbd1b8854a4d944ac2d349b7b28/mod_wsgi-4.4.14.tar.gz#md5=0b065fe19a9aad9175a9de45f079a080 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.14
    Found link https://pypi.python.org/packages/c3/4e/f9bd165369642344e8fdbe78c7e820143f73d3beabfba71365f27ee5e4d3/mod_wsgi-4.5.3.tar.gz#md5=9b6e964a678f69b1657c5f96a85b500e (from https://pypi.python.org/simple/mod-wsgi/), version: 4.5.3
    Found link https://pypi.python.org/packages/c7/ea/5fbff66a6d938e1e55dfbd736e10fb03eb9a1dfeeb151e6569c51254279b/mod_wsgi-4.2.2.tar.gz#md5=73c8c6b35142e345d1a019fb2e26afcf (from https://pypi.python.org/simple/mod-wsgi/), version: 4.2.2
    Found link https://pypi.python.org/packages/ce/47/2728db4d781e01d428d3bf91fbbf32e406fec466241501b63c7bbe4e19c3/mod_wsgi-4.4.20.tar.gz#md5=98116dafa026baa4138c847b54882c19 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.20
    Found link https://pypi.python.org/packages/db/2c/a5a40a7fe9eda2ccd904c9c4caf511adc002d43dbf8069722e229cec2a10/mod_wsgi-4.4.10.tar.gz#md5=cb9179d82c36d0457ac4f12ed5948668 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.10
    Found link https://pypi.python.org/packages/de/be/a1a8ccbe27180c93bf98ef2d1dee74ac80a4b8441eef822314aa4dc31116/mod_wsgi-4.4.4.tar.gz#md5=b3d5ab120fd00307e67c2e4467587327 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.4
    Found link https://pypi.python.org/packages/e8/6e/d25c41b306c5041964a45f7874e94ab54913ae6672fc5d5648e62198bdc4/mod_wsgi-4.5.5.tar.gz#md5=ebf07610da8e30bde92d161362ba3c1f (from https://pypi.python.org/simple/mod-wsgi/), version: 4.5.5
    Found link https://pypi.python.org/packages/ec/72/c2342469c171570a0c491636fd6957d00599b740bb93f17b1cc85c8d96ad/mod_wsgi-4.2.8.tar.gz#md5=71a49773e43e5d0ec8bc54ba8b54c42e (from https://pypi.python.org/simple/mod-wsgi/), version: 4.2.8
    Found link https://pypi.python.org/packages/f0/ab/9965b8291d786eaa9696bdaf54ce55d9c2d57c7b73fb616783bfe082ede6/mod_wsgi-4.4.9.tar.gz#md5=5870d033d72a1cea78f4e0d67f0ac4d9 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.9
    Found link https://pypi.python.org/packages/f2/c4/b3f4fb697c80ab093e1747146ee40088bfc02e1e7e88fae6ecc310ebedd2/mod_wsgi-4.3.2.tar.gz#md5=30355e3142c5494fea182d2e3011108f (from https://pypi.python.org/simple/mod-wsgi/), version: 4.3.2
    Found link https://pypi.python.org/packages/f2/fe/66d9b69bf0af9d45bfd625a8bf4269141998ce9643e85b6cac29c3eb5379/mod_wsgi-4.2.0.tar.gz#md5=5c078875aadb90eaab9c3d8c65c327a9 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.2.0
    Found link https://pypi.python.org/packages/f7/12/18ec8be0b97fbb2d1dcaf278c5315946fc285b6a593bf9442536aaff3d83/mod_wsgi-4.3.0.tar.gz#md5=4e68acbfca7fb4014ad7deb8789b115e (from https://pypi.python.org/simple/mod-wsgi/), version: 4.3.0
    Found link https://pypi.python.org/packages/fc/a9/1a44ad55a5428c9cae3ce33d2e5094b72f79bf7490d60da2e9238cae08fa/mod_wsgi-4.4.13.tar.gz#md5=01622db6b85ec80f1e89e689b938c63c (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.13
    Found link https://pypi.python.org/packages/fc/cd/2c8fcdc53016a2ac24e1cc27ca7a6a000f94328248efdd9c593a28b7e42c/mod_wsgi-4.4.0.tar.gz#md5=e4ef5ddff14aa075f9263f4a026160de (from https://pypi.python.org/simple/mod-wsgi/), version: 4.4.0
    Found link https://pypi.python.org/packages/ff/09/50aa8564c53985f246b17684569fe6fc96449a49f93b1f09d4b346c7c209/mod_wsgi-4.5.6.tar.gz#md5=d40b6045f29ad9799ddc369232494707 (from https://pypi.python.org/simple/mod-wsgi/), version: 4.5.6
  Using version 4.5.6 (newest of versions: 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.2.5, 4.2.6, 4.2.7, 4.2.8, 4.3.0, 4.3.1, 4.3.2, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4, 4.4.5, 4.4.6, 4.4.7, 4.4.8, 4.4.9, 4.4.10, 4.4.11, 4.4.12, 4.4.13, 4.4.14, 4.4.15, 4.4.16, 4.4.17, 4.4.18, 4.4.19, 4.4.20, 4.4.21, 4.4.22, 4.4.23, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.5.4, 4.5.5, 4.5.6)
  Looking up "https://pypi.python.org/packages/ff/09/50aa8564c53985f246b17684569fe6fc96449a49f93b1f09d4b346c7c209/mod_wsgi-4.5.6.tar.gz" in the cache
  No cache entry available
  "GET /packages/ff/09/50aa8564c53985f246b17684569fe6fc96449a49f93b1f09d4b346c7c209/mod_wsgi-4.5.6.tar.gz HTTP/1.1" 200 1805716
  Downloading mod_wsgi-4.5.6.tar.gz (1.8MB)
  Downloading from URL https://pypi.python.org/packages/ff/09/50aa8564c53985f246b17684569fe6fc96449a49f93b1f09d4b346c7c209/mod_wsgi-4.5.6.tar.gz#md5=d40b6045f29ad9799ddc369232494707 (from https://pypi.python.org/simple/mod-wsgi/)
    99% |████████████████████████████████| 1.8MB 12.0MB/s eta 0:00:01  Updating cache with response from "https://pypi.python.org/packages/ff/09/50aa8564c53985f246b17684569fe6fc96449a49f93b1f09d4b346c7c209/mod_wsgi-4.5.6.tar.gz"
  Caching due to etag
    100% |████████████████████████████████| 1.8MB 264kB/s 
  Running setup.py (path:/tmp/pip-build-iivcpejy/mod-wsgi/setup.py) egg_info for package mod-wsgi
    Running command python setup.py egg_info
    running egg_info
    creating pip-egg-info/mod_wsgi.egg-info
    writing dependency_links to pip-egg-info/mod_wsgi.egg-info/dependency_links.txt
    writing pip-egg-info/mod_wsgi.egg-info/PKG-INFO
    writing entry points to pip-egg-info/mod_wsgi.egg-info/entry_points.txt
    writing top-level names to pip-egg-info/mod_wsgi.egg-info/top_level.txt
    writing manifest file 'pip-egg-info/mod_wsgi.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/mod_wsgi.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'docs/_build/html/_static/font/*'
    writing manifest file 'pip-egg-info/mod_wsgi.egg-info/SOURCES.txt'
  Source in /tmp/pip-build-iivcpejy/mod-wsgi has version 4.5.6, which satisfies requirement mod_wsgi from https://pypi.python.org/packages/ff/09/50aa8564c53985f246b17684569fe6fc96449a49f93b1f09d4b346c7c209/mod_wsgi-4.5.6.tar.gz#md5=d40b6045f29ad9799ddc369232494707
Installing collected packages: mod-wsgi
  Running setup.py install for mod-wsgi ...     Running command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-iivcpejy/mod-wsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /tmp/pip-k227nqaz-record/install-record.txt --single-version-externally-managed --compile
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/mod_wsgi
    copying src/__init__.py -> build/lib.linux-x86_64-3.5/mod_wsgi
    creating build/lib.linux-x86_64-3.5/mod_wsgi/server
    copying src/server/environ.py -> build/lib.linux-x86_64-3.5/mod_wsgi/server
    copying src/server/__init__.py -> build/lib.linux-x86_64-3.5/mod_wsgi/server
    copying src/server/apxs_config.py -> build/lib.linux-x86_64-3.5/mod_wsgi/server
    creating build/lib.linux-x86_64-3.5/mod_wsgi/server/management
    copying src/server/management/__init__.py -> build/lib.linux-x86_64-3.5/mod_wsgi/server/management
    creating build/lib.linux-x86_64-3.5/mod_wsgi/server/management/commands
    copying src/server/management/commands/runmodwsgi.py -> build/lib.linux-x86_64-3.5/mod_wsgi/server/management/commands
    copying src/server/management/commands/__init__.py -> build/lib.linux-x86_64-3.5/mod_wsgi/server/management/commands
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/__init__.py -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    creating build/lib.linux-x86_64-3.5/mod_wsgi/images
    copying images/__init__.py -> build/lib.linux-x86_64-3.5/mod_wsgi/images
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/application-issues.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/reloading-source-code.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/access-control-mechanisms.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/assorted-tips-and-tricks.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/quick-configuration-guide.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/configuration-guidelines.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/virtual-environments.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/frequently-asked-questions.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/issues-with-pickle-module.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/registering-cleanup-code.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/configuration-issues.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/checking-your-installation.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/quick-installation-guide.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/debugging-techniques.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/installation-issues.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/processes-and-threading.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/issues-with-expat-library.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/installation-on-macosx.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    copying docs/_build/html/_sources/user-guides/file-wrapper-extension.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/user-guides
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGICallableObject.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIRestrictStdout.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIAcceptMutex.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGILazyInitialization.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIPythonPath.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIRestrictProcess.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIRestrictEmbedded.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIPythonEggs.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGICaseSensitivity.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIRestrictStdin.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIPythonHome.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIScriptAliasMatch.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGISocketPrefix.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIAccessScript.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIScriptAlias.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIAuthUserScript.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIPassAuthorization.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIPythonOptimize.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIAuthGroupScript.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIScriptReloading.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIProcessGroup.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIRestrictSignal.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIApplicationGroup.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIImportScript.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    copying docs/_build/html/_sources/configuration-directives/WSGIDaemonProcess.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/configuration-directives
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.5.6.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.4.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.2.1.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.10.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.1.0.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-1.5.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.18.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.19.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.22.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-3.2.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.2.7.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-3.3.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-2.1.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-1.2.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.5.1.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.5.4.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-2.2.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.2.6.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.5.5.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.17.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-2.3.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.21.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-3.0.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.2.0.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-1.1.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.3.0.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-1.3.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.2.8.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-2.6.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-3.4.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.6.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-3.5.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.5.0.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.12.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.2.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.20.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.8.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.2.4.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-2.7.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.3.2.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-2.0.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-2.5.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.2.5.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.5.3.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.13.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-1.0.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.1.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-1.6.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-3.1.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.15.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.0.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.16.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.1.3.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.11.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-2.4.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.1.1.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.3.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.3.1.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.2.3.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.7.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-2.8.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.2.2.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.1.2.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.5.2.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.5.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.0.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.9.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.14.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-1.4.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/release-notes/version-4.4.23.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources/release-notes
    copying docs/_build/html/_sources/index.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/installation.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/requirements.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/user-guides.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/project-status.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/source-code.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/security-issues.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/troubleshooting.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/finding-help.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/release-notes.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/contributing.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/getting-started.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/reporting-bugs.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    copying docs/_build/html/_sources/configuration.txt -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_sources
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/configuration-guidelines.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/assorted-tips-and-tricks.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/file-wrapper-extension.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/quick-configuration-guide.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/issues-with-expat-library.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/virtual-environments.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/processes-and-threading.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/checking-your-installation.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/quick-installation-guide.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/reloading-source-code.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/issues-with-pickle-module.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/access-control-mechanisms.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/frequently-asked-questions.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/installation-issues.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/application-issues.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/installation-on-macosx.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/registering-cleanup-code.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/configuration-issues.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    copying docs/_build/html/user-guides/debugging-techniques.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/user-guides
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/js
    copying docs/_build/html/_static/js/modernizr.min.js -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/js
    copying docs/_build/html/_static/js/theme.js -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/js
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    copying docs/_build/html/_static/fonts/RobotoSlab-Regular.ttf -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    copying docs/_build/html/_static/fonts/fontawesome-webfont.ttf -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    copying docs/_build/html/_static/fonts/fontawesome-webfont.woff -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    copying docs/_build/html/_static/fonts/fontawesome-webfont.svg -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    copying docs/_build/html/_static/fonts/fontawesome-webfont.eot -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    copying docs/_build/html/_static/fonts/Lato-Regular.ttf -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    copying docs/_build/html/_static/fonts/Inconsolata-Regular.ttf -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    copying docs/_build/html/_static/fonts/Inconsolata-Bold.ttf -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    copying docs/_build/html/_static/fonts/RobotoSlab-Bold.ttf -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    copying docs/_build/html/_static/fonts/Lato-Bold.ttf -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/fonts
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/css
    copying docs/_build/html/_static/css/badge_only.css -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/css
    copying docs/_build/html/_static/css/theme.css -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static/css
    copying docs/_build/html/_static/plus.png -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/basic.css -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/underscore.js -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/comment-close.png -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/minus.png -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/websupport.js -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/up-pressed.png -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/jquery-1.11.1.js -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/up.png -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/doctools.js -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/comment.png -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/searchtools.js -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/down.png -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/comment-bright.png -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/down-pressed.png -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/jquery.js -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/file.png -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/underscore-1.3.1.js -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/pygments.css -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    copying docs/_build/html/_static/ajax-loader.gif -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/_static
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIRestrictSignal.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIScriptAliasMatch.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIAccessScript.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIAuthUserScript.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIApplicationGroup.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGILazyInitialization.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIPythonOptimize.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGISocketPrefix.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIPythonEggs.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIScriptAlias.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIPythonHome.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIRestrictStdin.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIProcessGroup.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGICaseSensitivity.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIDaemonProcess.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIRestrictEmbedded.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIScriptReloading.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIAcceptMutex.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIRestrictStdout.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGICallableObject.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIPythonPath.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIPassAuthorization.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIImportScript.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIAuthGroupScript.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    copying docs/_build/html/configuration-directives/WSGIRestrictProcess.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/configuration-directives
    creating build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-3.1.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.5.2.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.2.6.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.5.6.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.8.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.19.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.14.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.3.1.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-2.7.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.22.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.1.3.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-1.3.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-2.2.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.13.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-2.6.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.5.0.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-2.4.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-2.3.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.15.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-2.5.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.2.0.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.0.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.2.2.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.23.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-3.3.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-1.5.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.1.2.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-1.0.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.3.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.16.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.3.0.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.1.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.2.7.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.5.5.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.2.1.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-3.0.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.5.4.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-1.6.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.2.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-3.2.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-3.4.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.18.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-1.2.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.20.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-3.5.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-2.8.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.11.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.4.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.5.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.21.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-2.0.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.12.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-1.4.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.5.3.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.2.5.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.1.1.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.9.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.7.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.0.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.2.3.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-2.1.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.2.8.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.5.1.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.6.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-1.1.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.1.0.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.2.4.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.10.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.3.2.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/release-notes/version-4.4.17.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs/release-notes
    copying docs/_build/html/index.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/requirements.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/project-status.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/objects.inv -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/installation.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/searchindex.js -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/reporting-bugs.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/search.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/getting-started.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/contributing.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/configuration.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/genindex.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/.buildinfo -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/source-code.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/user-guides.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/security-issues.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/troubleshooting.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/finding-help.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying docs/_build/html/release-notes.html -> build/lib.linux-x86_64-3.5/mod_wsgi/docs
    copying images/snake-whiskey.jpg -> build/lib.linux-x86_64-3.5/mod_wsgi/images
    running build_ext
    building 'mod_wsgi.server.mod_wsgi-py35' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/src
    creating build/temp.linux-x86_64-3.5/src/server
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I -I/usr/include/python3.5m -c src/server/wsgi_validate.c -o build/temp.linux-x86_64-3.5/src/server/wsgi_validate.o
    In file included from src/server/wsgi_validate.h:24:0,
                     from src/server/wsgi_validate.c:21:
    src/server/wsgi_python.h:24:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
error
Cleaning up...
  Removing source in /tmp/pip-build-iivcpejy/mod-wsgi
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-iivcpejy/mod-wsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /tmp/pip-k227nqaz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-iivcpejy/mod-wsgi/
Exception information:
Traceback (most recent call last):
  File "/home/{user_name}/.local/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/{user_name}/.local/lib/python3.5/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/home/{user_name}/.local/lib/python3.5/site-packages/pip/req/req_set.py", line 742, in install
    **kwargs
  File "/home/{user_name}/.local/lib/python3.5/site-packages/pip/req/req_install.py", line 880, in install
    spinner=spinner,
  File "/home/{user_name}/.local/lib/python3.5/site-packages/pip/utils/__init__.py", line 718, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-iivcpejy/mod-wsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /tmp/pip-k227nqaz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-iivcpejy/mod-wsgi/

[toc]

Problem Statement: How to fix “fatal error: Python.h: No such file or directory“?

What is a “fatal” error?

A fatal error causes a program to end with practically no warning without even saving its state. It usually occurs when an application attempts to access a piece of invalid information or data. The program closes down as it shows illegal action, and it returns the user to the operating system. When the fatal error occurs, the user can lose any unsaved changes made in the program. 

fatal error: Python.h: No such file or directory

When does the error occur?

Generally, you face this error when you try to generate the output file while building a shared library using a C extension file. In other words, you encounter this error while trying to build a shared library using the file extension of another language( e.g. C ).

Example: Suppose you use the command below.

gcc -Wall utilsmodule.c -o Utilc

When you execute the above command, you will get the following error message:

utilsmodule.c:1: 20: fatal error: Python.h: No such file or directory compilation terminated.

Now that you know the reasons behind the occurrence of the error let’s look at the ways to fix it.

#Fix 1: Using Package Managers According to Your Operating System

Most probably, when you face this error, it’s because you have not installed the static libraries and the header files properly. Hence to solve the error, you need to use the package manager to install them on the PC.

Use the following commands according to the OS installed on your system. 

For Ubuntu:
sudo apt-get install python-dev
sudo apt-get install python3- dev
For Fedora:
sudo dnf install python-devel  
sudo dnf install python3- devel
For CentOS:
sudo yum install python-devel    
sudo yum install python3 – devel 
For Cygwin:
apt-cyg install python-devel
apt-cyg install python3- devel 
For openSUSE:
sudo zypper in python- devel   
sudo zypper in python3 -devel 
For Alpine:
sudo apk add python-dev  
sudo apk add python3 -dev

Caution: The above command only works if you are using either Python 2 or Python 3 version.

The commands for Python 3.6, 3.8, and 3.9 versions are as follows:

sudo apt install libpython3.6 -devsudo apt install libpython3.8 -devsudo apt install libpython3.9- dev

#Fix 2: Ensure that the Python Dev Files Come with Your OS

You can solve this error by checking that the Python dev files come with your operating system. To avoid the fatal error, you should not hard code the library and include paths. However, you can use the pkg-config that will output the correct options for the specific system:

$ pkg-config -- cflags --libs python2-I/usr/include/python2.7 -lpython2.7

Also, add the following to the gcc line:

gcc $(pkg-config --cflags --libs python2) -Wall utilsmodule.c -o Utilc

#Fix 3: By Changing the Header’s Directory

Sometimes you can solve the “fatal error: Python.h: No such file or directory” by simply making changes to the header files. These files are typically installed with Python. 

Locating the header files

On Unix os the header files are located in the directories prefix/include/pythonversion/ and exec_prefix/ include/pythonversion/. Here the prefixes are defined using the parameters to the configure script in Python, and the version is '%d.%d' % sys.version_info[:2]. On Windows, the files are installed in prefix/include, where prefix is the installation directory that is specified to the installer.

To find the header file itself, you can use Python 3 configuration:

$ python3-config --include-I/Users/<username>/.pyenv/versions/3.8.2/include/python3.8

Generally, the Python development headers are located in the directory shown.

To avoid the error, you must include the headers by placing both the directories on your compiler’s search path for includes. So instead of using the following header directory, which results in a fatal error:

#include "Python.h"

Just change the header directory. You can even change it with the following:

#include <python2.7/ Python.h>

Using venv

If you are using a virtual environment tool such as venv, then most probably, the Python development headers will already be included in compilation and the linking by default. If it’s not, then you will get an error message:

fatal error: 'Python.h ' file not found
#include <Python.h>

If this happens, you must ask the setup.py to search for the header files by setting the CFLAGS. You can now locate the header files and use them with Python setup.py bdist_wheel.

$ CFLAGS = "$(python 3- config -- include)" python setup.py bdist_wheel
$ CFLAGS = '-I/path/to/include' python setup.py bdist_wheel

Conclusion

In this article, we learned how to solve the fatal error:Python.h: No such file or directory.  I hope this discussion helped you to solve your problem. Please stay tuned and subscribe for more interesting solutions and discussions in the future. Happy learning!


Finxter Computer Science Academy

  • One of the most sought-after skills on Fiverr and Upwork is web scraping. Make no mistake: extracting data programmatically from websites is a critical life skill in today’s world that’s shaped by the web and remote work.
  • So, do you want to master the art of web scraping using Python’s BeautifulSoup?
  • If the answer is yes – this course will take you from beginner to expert in Web Scraping.

shubham finxter profile image

I am a professional Python Blogger and Content creator. I have published numerous articles and created courses over a period of time. Presently I am working as a full-time freelancer and I have experience in domains like Python, AWS, DevOps, and Networking.

You can contact me @:

UpWork
LinkedIn

  1. Causes of 'Python.h': No such file or directory Error in C++
  2. Python Installation That Allows Embedding Its Code in C++
  3. Steps to Add Python Path to IDE’s Include and Linker
  4. Add Python Path to Include and Linker
  5. Write Python Codes in C++ and Compile Them
  6. Conclusion

Solved - Python.h: No Such File or Directory in C++

This article will explain how to solve the error 'Python.h': No such file or directory. This usually happens when we try to embed Python code in C++, but the compiler cannot find a reference to Python inside the system.

Causes of 'Python.h': No such file or directory Error in C++

Below is a C++ program that uses Python codes.

#include <stdio.h>
#include <conio.h>
#include <Python.h>

int main()
{
	PyObject* pInt;

	Py_Initialize();

	PyRun_SimpleString("print('Hello World from Embedded Python!!!')");

	Py_Finalize();

	printf("nPress any key to exit...n");
	if (!_getch()) _getch();
	return 0;
}

When this program is compiled, it gives the error 'Python.h': No such file or directory.

Build started...
1>------ Build started: Project: Python into Cpp, Configuration: Debug x64 ------
1>1.cpp
1>C:UsersWin 10sourcereposPython into Cpp1.cpp(3,10): fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
1>Done building project "Python into Cpp.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Various reasons cause the 'Python.h': No such file or directory issue.

  1. Python is not installed inside the system.

    Python is third-party enterprise software that does not come with standard Windows and C++ compilers installation. It must be installed with correct settings and linked to the C++ compiler.

  2. C++ compiler cannot find Python.

    If the compiler is run through an IDE or mingw4, it can only detect that standard C++ includes packages that come with a standard installation.

    Third-party libraries are needed to be added to the IDE include and linker files.

    Three steps need to be executed to solve the above issues.

    1. Custom installing Python that allows it to be embedded in IDEs.
    2. Adding Python path to IDE include and linker paths.
    3. Writing Python codes inside C++ codes and compiling them.

Python Installation That Allows Embedding Its Code in C++

If there is no Python inside the system, or if it is installed and linked but still the error 'Python.h': No such file or directory occurs, it’s because the Python installation did not download the debug binaries with it.

It is recommended that Python be uninstalled and then reinstalled correctly to solve the error 'Python.h': No such file or directory.

Head to the Python website and download the latest Python version. If a certain version is required, head to the All Releases download section.

This article demonstrates the steps in Windows OS, so the suitable option is to go with the Windows installer(64bit or 32bit). It is recommended to use the 64-bit version if a modern PC is used.

After the download is complete, run the installer, and choose Customize Installation. The Install now option will install Python with default settings but leave the debug binaries out that allows embedding it into IDEs.

Tick the box that asks to Add Python X.X(version) to PATH and then click on Customize Installation.

Customize Installation

On the next page, mark all the boxes and then click next.

Optional Features

In the third menu, tick the box Download debug binaries and click on Install. Python will be installed inside the selected directory.

Debug Libraries

Steps to Add Python Path to IDE’s Include and Linker

Any third-party library that does not come with C++ in its standard installation must be referenced to the IDE. IDEs cannot automatically search and detect third-party libraries inside the system.

This is the reason that causes the error 'Python.h': No such file or directory.

Though IDE can search for files when the package library is stored in the same directory where the C++ script is located, its path should be mentioned inside the program’s #include<> header.

But storing dependencies this way is a bad practice.

What needs to be done is that the path of the library should be linked to the IDE so that it can be included the way standard header files are included, removing the need to provide a file path with the source code.

Any third-party library that does not come with C++ in its standard installation must be referenced to the IDE. IDEs cannot automatically search and detect third-party libraries inside the system.

This is the reason that causes the error 'Python.h': No such file or directory.

At first, an IDE is needed. It is recommended to go with Visual Studio (2017 or later), and this article will cover the same.

Any other IDE can also be used, the steps are identical in most of them, but Visual Studio makes it simple.

Install Visual Studio in the System

The installer of Visual Studio can be downloaded from here. After downloading the 64-bit Community version, install the software, including the C++ development option.

After installation is completed, create a new project.

The window can look intimidating for readers who have never used Visual Studio before, but there’s no need to worry. Most of the features that will be needed are in front, and this article will guide the rest.

Create a project, and give it a name like ‘Python in cpp’. After the project is created, the main window would look something like this:

main window

If there is just a black screen, press Ctrl+Alt+l, and the solution explorer will open. The solution explorer shows all the files and dependencies available for the project.

Add Python Path to Include and Linker

In this step, the Python path will be included and linked to Visual Studio so that the IDE knows where to look when #include <python.h> is written.

A prerequisite for this step is to know the directory where Python is installed and keep it open in another window. Now head down to Debug > Project Name > Properties (Instead of Project name, it will display the project’s name).

project properties

Inside the project properties window, go to C/C++ > General > Additional Include Directories, click on the tiny drop button on the extreme right, and then click on <Edit...>.

C++ General

The Additional Include Directories dialog box will open. Here, double-click on the first blank space and paste the path of the include folder from the directory where Python is installed inside the system, then click OK.

Additional Include Directories

After the path of include directory is added, head down to Linker > General > Additional Library Directories. Like the previous step, click on <Edit...>.

Additional Library Directories

Now, the libs folder should be added to the linker. This folder is also found inside the Python directory, where the include folder is located.

After it is added, click on OK and then click on Apply.

Add lib folder

Write Python Codes in C++ and Compile Them

Once the include and linker paths are added, a sample program must be compiled to check whether the above steps have been executed correctly, and the 'Python.h': No such file or directory error is not encountered again.

Go to the solution explorer and right-click on source files. Click on add > new item, give the file a name and click add.

This new file will contain the code that will be compiled.

Below is the C++ program used at the start of the article that threw errors.

#include <stdio.h>
#include <conio.h>
#include <Python.h>

int main()
{
	PyObject* pInt;

	Py_Initialize();

	PyRun_SimpleString("print('Hello World from Embedded Python!!!')");

	Py_Finalize();

	printf("nPress any key to exit...n");
	if (!_getch()) _getch();
	return 0;
}

Now, when the file is compiled by clicking on the green play button on the top, we get the output:

Hello World from Embedded Python!!!

Press any key to exit...

Conclusion

This article explains the steps to solve the error 'Python.h': No such file or directory. After reading this article, the reader can install Python and Visual Studio and link them to the Python library.


if( aicp_can_see_ads() ) {

}

This post would explain a fix as regards to How To Fix – fatal error: Python.h: No such file or directory.

Issue:


  • While building shared library using other language file extension ( e.g. C ) , we sometimes get the below error –
utilsmodule.c:1:20: fatal error: Python.h: No such file or directory compilation terminated.


if( aicp_can_see_ads() ) {

}

Reason:


  • This error occurs when we miss to install all the Python Developement files (header files and static libraries)
  • Also sometimes include files might not be default in the include path. Or Python library linked with executable by default. We might have to add these flags (using Correct Python’s version)

Step 1: Install Dev Packages

The obvious solution is to to install the missing files and libraries as explained below. We will see what to install the files for different operating systems –

1. Ubuntu

sudo apt-get install python-dev # for python2.x
sudo apt-get install python3-dev # for python3.x

2. Linux Fedora

sudo dnf install python2-devel # for python2.x
sudo dnf install python3-devel # for python3.x

3. Red Hat Linux

sudo yum install python-devel # for python2.x
sudo yum install python3-devel # for python3.x


if( aicp_can_see_ads() ) {

}

4. SUSE Linux

sudo zypper in python-devel # for python2.x
sudo zypper in python3-devel # for python3.x

5. CentOs

sudo yum install python-devel # for python2.x
sudo yum install python3-devel # for python3.x

6. Debian

sudo apt-get install python-dev # for python2.x
sudo apt-get install python3-dev # for python3.x

7. If using Cygwin console

apt-cyg install python-devel # for python2.x
apt-cyg install python3-devel # for python3.x

8. Rasberry Pi

sudo apt-get install python-dev

Step 2: Link

  • Use include files in the default include path and Python Library to be linked with executable , if not already
-I/usr/include/python2.7 -lpython2.7 

-I/usr/include/python2.7 -lpython3.2

Step 3 :  Compile

gcc -Wall -I/usr/include/python3.7 -lpython3.7 utilsmodule.c -o Utilc 

gcc -Wall -I/usr/include/python2.7 -lpython2.7 utilsmodule.c -o Utilc

Hope this helps to fix the fatal error in Python.


if( aicp_can_see_ads() ) {

}


if( aicp_can_see_ads() ) {

}

Additional Posts:

  • Free Google Datasets for Analytics NLP & AI
  • How To Setup Spark Scala SBT in Eclipse


if( aicp_can_see_ads() ) {

}

Понравилась статья? Поделить с друзьями:
  • Pip error exception traceback most recent call last
  • Phpmyadmin ошибка 2002
  • Pip error could not find a version that satisfies the requirement
  • Phpmyadmin недостаточно прав для просмотра пользователей как исправить
  • Phpmyadmin кодировка сервера как изменить