对于 Python 3,是否存在可以将 WSGI 应用程序用作 FastCGI 服务器的库? (这样 nginx 就可以代理请求了吗?)
The Python 3 docs提及flup , 但 flup 甚至没有安装在 Python 3 中:
% env3/bin/pip install flup Downloading/unpacking flup Downloading flup-1.0.2.tar.gz (49kB): 49kB downloaded Running setup.py (path:/Users/me/tmp/env3/build/flup/setup.py) egg_info for package flup Traceback (most recent call last): File "", line 17, in File "/Users/me/tmp/env3/build/flup/setup.py", line 2, in from ez_setup import use_setuptools File "./ez_setup.py", line 98 except pkg_resources.VersionConflict, e: ^ SyntaxError: invalid syntax Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 17, in File "/Users/me/tmp/env3/build/flup/setup.py", line 2, in from ez_setup import use_setuptools File "./ez_setup.py", line 98 except pkg_resources.VersionConflict, e: ^ SyntaxError: invalid syntax ---------------------------------------- Cleaning up... Command python setup.py egg_info failed with error code 1 in [snip] Storing debug log for failure in [snip]
最佳答案
现在有一个名为 flup6
的模块。使用 pip
./pip install flup6
关于python - Python 3 中的 FastCGI WSGI 库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23482357/