6

次のコマンドを実行しようとすると、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.

私のデフォルトのApacheインストールには存在しない apxs がありませんこのapxsを取得するにはどうすればよいですか?? Apacheをインストールしてからmod_wsgiをpythonインストールにインストールする他の方法はありますか?

編集 - 私も pip install mod_wsgi-httpd を試しましたが、それが言うように動作しません -

Failed to build APR.
4

1 に答える 1

3

これは、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 )

于 2015-11-09T08:20:29.207 に答える