我的代码放在apache文件夹中不起作用
当我尝试使用pip install mod_wsgi
2.4和apache
2.7安装python
时出现以下错误
错误:命令'f:\ anaconda \ python.exe'-u -c的完整输出 '导入设置工具, tokenize; 文件 ='“'”'c:\ users \ mvisaka \ appdata \ local \ temp \ pip-install-l6loch \ mod-wsgi \ setup.py'“'”'; f = getattr(tokenize, '“”“'open'”'“,打开)(文件); code = f.read()。replace('”'“'\ r \ n'”'“', '“'”'\\ n'“'”'); f.close(); exec(compile(code, file ,'“'”'exec'“'”')))' 安装-记录 'c:\ users \ mvisaka \ appdata \ local \ temp \ pip-record-jjdude \ install-record.txt' -单一版本-外部管理-编译: 错误:f:\ anaconda \ 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'扩展名 创建build \ temp.win-amd64-2.7 创建build \ temp.win-amd64-2.7 \ Release 创建build \ temp.win-amd64-2.7 \ Release \ src 创建build \ temp.win-amd64-2.7 \ Release \ src \ server C:\ Users \ mvisaka \ AppData \ Local \ Programs \ Common \ Microsoft \ Visual C ++ for Python \ 9.0 \ VC \ Bin \ amd64 \ cl.exe / c / nologo / Ox / MD / W3 / GS- / DNDEBUG -IC:\ Apache24 \ bin / include-如果:\ anaconda \ include -如果:\ anaconda \ PC / Tcsrc /服务器\ mod_wsgi.c /Fobuild\temp.win-amd64-2.7\Release\src/server\mod_wsgi.obj mod_wsgi.c c:\ users \ mvisaka \ appdata \ local \ temp \ pip-install-l6loch \ mod-wsgi \ src \ server \ wsgi_apache.h(42) :致命错误C1083:无法打开包含文件:'httpd.h':没有此类文件 或目录 错误:命令'C:\ Users \ mvisaka \ AppData \ Local \ Programs \ Common \ Microsoft \ Visual 适用于Python \ 9.0 \ VC \ Bin \ amd64 \ cl.exe的C ++失败,退出状态为2 ----------------------------------------错误:命令“'f:\ anaconda \ python.exe'-u -c'导入setuptools, tokenize; 文件 ='“'”'c:\ users \ mvisaka \ appdata \ local \ temp \ pip-install-l6loch \ mod-wsgi \ setup.py'“'”'; f = getattr(tokenize, '“”“'open'”'“,打开)(文件); code = f.read()。replace('”'“'\ r \ n'”'“', '“'”'\\ n'“'”'); f.close(); exec(compile(code, file ,'“'”'exec'“'”')))' 安装-记录 'c:\ users \ mvisaka \ appdata \ local \ temp \ pip-record-jjdude \ install-record.txt' --single-version-externally-managed --compile“在c:\ users \ mvisaka \ appdata \ local \ temp \ pip-install-l6loch \ mod-wsgi \
中失败,错误代码为1