对于 Python 3,是否存在可以将 WSGI 应用程序用作 FastCGI 服务器的库? (这样 nginx 就可以将请求代理给它了?)
Python 3 文档 https://docs.python.org/3/howto/webservers.html#setting-up-fastcgi提到flup https://pypi.python.org/pypi/flup/1.0,但 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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)