Python 3中的FastCGI WSGI库? [英] FastCGI WSGI library in Python 3?
本文介绍了Python 3中的FastCGI WSGI库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否存在任何可以将WSGI应用程序用作FastCGI服务器的库(对于Python 3)? (这样nginx可以然后代理对它的请求了吗?)
Does there exist any library that can serve a WSGI application as a FastCGI server, for Python 3? (So that nginx could then proxy requests to it?)
Python 3文档提到flup ,但是flup甚至没有安装在Python 3中:
The Python 3 docs mention flup, but flup doesn't even install in 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
There is now module called flup6
. Install it using pip
./pip install flup6
这篇关于Python 3中的FastCGI WSGI库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文