尝试安装mod_wsgi apache模块

时间:2018-12-22 17:07:18

标签: python postgresql apache mod-wsgi pgadmin-4

我将Bitnami WAPP(Windows,Apache,PostgreSQL,PHP)堆栈用作开发环境,并且我需要安装mod_wsgi才能使用pgAdmin4-PostgreSQL的RDBMS(类似于MySQL Workbench)。但是当我尝试使用pip install mod_wsgi安装它时,它返回以下错误:

C:\ WINDOWS \ system32> pip安装mod_wsgi 收集mod_wsgi   使用缓存的https://files.pythonhosted.org/packages/47/69/5139588686eb40053f8355eba1fe18a8bee94dc3efc4e36720c73e07471a/mod_wsgi-4.6.5.tar.gz 安装收集的软件包:mod-wsgi   运行setup.py install for mod-wsgi ...错误     从命令c:\ python27 \ python.exe -u -c“ import setuptools,tokenize; 文件 ='c:\ users \ justin〜1 \ appdata \ local \ temp \ pip-install的完整输出-myppun \ mod-wsgi \ setup.py'; f = getattr(tokenize,'open',open)( file ); code = f.read()。replace('\ r \ n ','\ n'); f.close(); exec(compile(code, file ,'exec')))“安装--record c:\ users \ justin〜1 \ appdata \本地\ temp \ pip-record-xtudvn \ install-record.txt-单版本-外部管理-编译:     c:\ python27 \ lib \ distutils \ dist.py:267:UserWarning:未知分发选项:'bugtrack_url'       warnings.warn(msg)     运行安装     运行构建     运行build_py     创建版本     创建build \ lib.win-amd64-2.7     创建build \ lib.win-amd64-2.7 \ mod_wsgi     复制src__init__.py-> build \ lib.win-amd64-2.7 \ mod_wsgi     创建build \ lib.win-amd64-2.7 \ mod_wsgi \ server     复制src \ server \ apxs_config.py-> build \ lib.win-amd64-2.7 \ mod_wsgi \ server     复制src \ server \ environ.py-> build \ lib.win-amd64-2.7 \ mod_wsgi \ server     复制src \ server__init __。py-> build \ lib.win-amd64-2.7 \ mod_wsgi \ server     创建build \ lib.win-amd64-2.7 \ mod_wsgi \ server \ management     复制src \ server \ management__init __。py-> build \ lib.win-amd64-2.7 \ mod_wsgi \ server \ management     创建build \ lib.win-amd64-2.7 \ mod_wsgi \ server \ management \ commands     复制src \ server \ management \ commands \ runmodwsgi.py-> build \ lib.win-amd64-2.7 \ mod_wsgi \ server \ management \ commands     复制src \ server \ management \ commands__init __。py-> build \ lib.win-amd64-2.7 \ mod_wsgi \ server \ management \ commands     创建build \ lib.win-amd64-2.7 \ mod_wsgi \ docs     复制docs_build \ html__init __。py-> build \ lib.win-amd64-2.7 \ mod_wsgi \ docs     创建build \ lib.win-amd64-2.7 \ mod_wsgi \ images     复制图像__init__.py-> build \ lib.win-amd64-2.7 \ mod_wsgi \ images     复制images \ snake-whiskey.jpg-> build \ lib.win-amd64-2.7 \ mod_wsgi \ images     运行build_ext     建立'mod_wsgi.server.mod_wsgi'扩展名     错误:INCLUDE环境变量为空

----------------------------------------

命令“ c:\ python27 \ python.exe -u -c”导入设置工具,标记化; 文件 ='c:\ users \ justin〜1 \ appdata \ local \ temp \ pip- install-myppun \ mod-wsgi \ setup.py'; f = getattr(tokenize,'open',open)( file ); code = f.read()。replace('\ r \ n','\ n'); f.close(); exec(compile(code, file ,'exec')))“安装-记录c:\ users \ justin〜1 \ appdata \ local \ temp \ pip-record-xtudvn \ install-record.txt –“单版本-外部管理的–compile”失败,错误代码为1:c:\ users \ justin〜1 \ appdata \ local \ temp \ pip-install-myppun \ mod-wsgi \

我也在上面的命令之前运行了该命令

set "MOD_WSGI_APACHE_ROOTDIR=C:/Bitnami/wappstack-7.1.25-0/apache2"

我该如何解决?请帮助...谢谢!

0 个答案:

没有答案