首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带有python3.9的mod_wsgi

带有python3.9的mod_wsgi
EN

Stack Overflow用户
提问于 2022-04-08 23:42:27
回答 1查看 1K关注 0票数 0

我尝试用python3.9安装mod_wsgi,但遇到了以下问题:

代码语言:javascript
复制
Collecting mod_wsgi
  Using cached mod_wsgi-4.9.0.tar.gz (497 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Abderrahim\AppData\Local\Temp\pip-install-vyvmq_yd\mod-wsgi_44a42999c6a1497587de7d892a9a5a00\setup.py", line 81, in <module>
          raise RuntimeError('No Apache installation can be found. Set the '
      RuntimeError: No Apache installation can be found. Set the MOD_WSGI_APACHE_ROOTDIR environment to its location.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

知道我已经安装了visual studio构建工具,请帮助我。

EN

回答 1

Stack Overflow用户

发布于 2022-04-09 08:29:36

请参见此处的安装说明:

https://pypi.org/project/mod-wsgi/

“如果您在Windows上,并且您的Apache发行版没有安装到目录C:/ Apache 24中,那么首先将环境变量MOD_WSGI_APACHE_ROOTDIR设置为包含Apache发行版的目录

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71804128

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档