Windows10下安装Python2.7模块mod_wsgi提示找不到apr_perms_set.h问题的解决办法

版权声明: https://blog.csdn.net/qq_21578125/article/details/82017941

环境:Windows 10 x86,Apache 2.4.x,Python 2.7.x,Microsoft Visual C++ Compiler Package for Python 2.7

安装 mod_wsgi前,需要先设置环境变量MOD_WSGI_APACHE_ROOTDIR(指向apache安装目录)。

然后,执行下面的命令开始安装:

pip install mod_wsgi

安装过程中提示:

fatal error C1083: Cannot open include file: 'apr_perms_set.h': No such file or directory

检查发现Apache的include目录下确实没这个文件,从下面的项目下载同名文件放到include目录下后安装成功。

下载地址:https://raw.githubusercontent.com/traviscross/apr/master/include/apr_perms_set.h

猜你喜欢

转载自blog.csdn.net/qq_21578125/article/details/82017941
今日推荐