gpt4 book ai didi

python - Python 3 中的 FastCGI WSGI 库?

转载 作者:太空狗 更新时间:2023-10-29 17:16:59 24 4
gpt4 key购买 nike

对于 Python 3,是否存在可以将 WSGI 应用程序用作 FastCGI 服务器的库? (这样 nginx 就可以代理请求了吗?)

The Python 3 docs提及flup , 但 flup 甚至没有安装在 Python 3 中:

% env3/bin/pip install flupDownloading/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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com