`Cannot open include file: 'apr_perms_set.h'` when doing `pip install mod_wsgi`

后端 未结 3 1329
醉梦人生
醉梦人生 2021-01-19 07:11

I am trying to roll out a production Django environment on Windows 10 with Apache 2.4.37 x64 OpenSSL 1.1.1 VC14 from ApacheHaus. However, when following these instructions,

相关标签:
3条回答
  • 2021-01-19 07:23

    I had similar error on Windows Server 2016, when trying to use Apache 2.4 64bit with Python 2.7. Apparently apr header files were missing. I was able to solve it by:

    • making sure I have both Apache and Python 64bit (guess it'll be valid for 32bit as well) installing VC++ Redistributable - of course 64bit in my case
    • downloading Apache Runtime (apr) headers from APR project website
    • copying missing header file from downloaded sources into Apache's include folder
    • installing mod_wsgi with pip install mod_wsgi (inside my virtual environment).
    0 讨论(0)
  • 2021-01-19 07:24

    You can download the missing file from Github and copy it in the directory

    C:/Apache24/include
    
    0 讨论(0)
  • 2021-01-19 07:28

    The distribution from The Apache Haus does not include the aforementioned header file for some strange reason. Try using the distribution from Apache Lounge, it should contain all header files needed to compile mod_wsgi (tested with httpd-2.4.41-win32-VS16.zip).

    0 讨论(0)
提交回复
热议问题