簡體   English   中英

如何將py_wsgi作為python安裝到python安裝中?

[英]How to install mod_wsgi as a python into python installation?

當我嘗試運行以下命令時,我無法在Windows上安裝mod_wsgi:

pip install mod_wsgi

它說-

Collecting mod-wsgi
Using cached mod_wsgi-4.4.14.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 20, in <module>
  File "c:\users\aditya\appdata\local\temp\pip-build-ffaywu\mod-wsgi\setup.p
     y", line 139, in <module>
    'missing Apache httpd server packages.' % APXS)
  RuntimeError: The 'apxs' command appears not to be installed or is not 
  executable. Please check the list of prerequisites in the documentation 
  for this package and install any missing Apache httpd server packages.

它缺少apxs ,這在我的默認apache安裝中不存在。 我怎么得到這個apxs? 有沒有其他方法來安裝apache然后mod_wsgi到python安裝?

編輯 - 我甚至嘗試了pip install mod_wsgi-httpd,但它不能正常工作,因為它說 -

Failed to build APR.

這是因為您無法在Windows上使用pip可安裝的mod_wsgi。 您需要使用預編譯的二進制文件,如下所述:

https://github.com/GrahamDumpleton/mod_wsgi/blob/develop/win32/README.rst

禮貌:Graham Dumpleton( https://github.com/GrahamDumpleton/mod_wsgi/issues/76

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM